using Misc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FLY.Thick.Base.UI
{
    /// <summary>
    /// LCUS1 绑定 全局参数字典ParamDictionary 的配置
    /// </summary>
    public class LCUS1_dependOn:LCUS1
    {
        ParamDictionary paramDictionary;
        public LCUS1_dependOn(
            ParamDictionary paramDictionary) 
        {
            this.paramDictionary = paramDictionary;
            //绑定 this.PortName 与 this.paramDictionary.LCUS1_PortName
            this.paramDictionary.SetBinding(this, nameof(PortName), ParamDistItemKeys.LCUS1_PortName, "COM1");
            this.paramDictionary.SetBinding(this, nameof(Enable), ParamDistItemKeys.LCUS1_Enable, false);
        }
    }
}
