| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- using Prism.Mvvm;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace TeamAAS_VP.Models.Lights
- {
- public class ChannelConfig: BindableBase
- {
- private string _Name;
- /// <summary>
- /// 通道名称
- /// </summary>
- public string Name
- {
- get { return _Name; }
- set { SetProperty(ref _Name, value); }
- }
- private string _Description;
- /// <summary>
- /// 通道描述
- /// </summary>
- public string Description
- {
- get { return _Description; }
- set { SetProperty(ref _Description, value); }
- }
- private int _LocalIndex;
- /// <summary>
- /// 控制器内的通道索引
- /// </summary>
- public int LocalIndex
- {
- get { return _LocalIndex; }
- set { SetProperty(ref _LocalIndex, value); }
- }
- private int _GlobalIndex;
- /// <summary>
- /// 系统中的全局通道索引
- /// </summary>
- public int GlobalIndex
- {
- get { return _GlobalIndex; }
- set { SetProperty(ref _GlobalIndex, value); }
- }
- private int _DefaultBrightness=100;
- public int DefaultBrightness
- {
- get { return _DefaultBrightness; }
- set { SetProperty(ref _DefaultBrightness, value); }
- }
- public ChannelConfig()
- {
- }
- public ChannelConfig(int localIndex, int globalIndex, string name = "", string description = "", int defaultBrightness=100)
- {
- LocalIndex = localIndex;
- GlobalIndex = globalIndex;
- Name = name;
- Description = description;
- DefaultBrightness = defaultBrightness;
- }
- }
- }
|