示例#1
0
        public void load(System.Collections.Hashtable tb)
        {
            IComputerItem item1 = (IComputerItem)tb["192-168-1-98-320"];

            this.Items.Add(item1);
            item1._Notify += computerAction;
        }
示例#2
0
        public void load(System.Collections.Hashtable tb)
        {
            IComputerItem item1 = (IComputerItem)tb["出口压力_源数据"];

            this.Items.Add(item1);
            item1._Notify += computerAction;
        }
示例#3
0
        public void load(System.Collections.Hashtable tb)
        {
            电参量 = new 电参数地址集合().获取电参数地址集合实例();
            IComputerItem item1 = (IComputerItem)tb["流量_源数据"];

            this.Items.Add(item1);
            item1._Notify += computerAction;
        }
示例#4
0
        public void load(System.Collections.Hashtable tb)
        {
            IComputerItem item1 = (IComputerItem)tb["流量"];
            IComputerItem item2 = (IComputerItem)tb["扬程"];
            IComputerItem item3 = (IComputerItem)tb["输入功率"];

            this.Items.Add(item1);
            this.Items.Add(item2);
            this.Items.Add(item3);
            item1._Notify += computerAction;
        }
示例#5
0
        public void load(System.Collections.Hashtable tb)
        {
            IComputerItem item1 = (IComputerItem)tb["温度_源数据3"];

            this.Items.Add(item1);
            item1._Notify += computerAction;

            IComputerItem item2 = (IComputerItem)tb[电压电参数];

            this.Items.Add(item2);
            item2._Notify += computerAction;
        }
示例#6
0
        public void load(System.Collections.Hashtable tb)
        {
            IComputerItem item1 = (IComputerItem)tb["33"];
            IComputerItem item2 = (IComputerItem)tb["44"];
            IComputerItem item3 = (IComputerItem)tb["55"];

            this.Items.Add((IComputerItem)tb["33"]);
            this.Items.Add((IComputerItem)tb["44"]);
            this.Items.Add((IComputerItem)tb["55"]);
            item1._Notify += new Notify(computerAction);
            item2._Notify += new Notify(computerAction);
            item3._Notify += new Notify(computerAction);
        }
示例#7
0
        public void load(System.Collections.Hashtable tb)
        {
            IComputerItem item1 = (IComputerItem)tb["转速1_源数据"];

            this.Items.Add(item1);
            IComputerItem item2 = (IComputerItem)tb["流量"];

            this.Items.Add(item2);
            IComputerItem item3 = (IComputerItem)tb["温度"];

            this.Items.Add(item3);
            IComputerItem item4 = (IComputerItem)tb["进口压力"];

            this.Items.Add(item4);
            item1._Notify += computerAction;
        }
示例#8
0
        public static void To装载计算列()
        {
            string   path = AppDomain.CurrentDomain.BaseDirectory + "Computer.dll";
            Assembly _ass = Assembly.LoadFile(path);
            文件操作     file = new 文件操作();

            file.PATH = AppDomain.CurrentDomain.BaseDirectory + "\\数据配置文件\\计算列源.csv";
            file.加载文件();
            string value = string.Empty;

            string[] _value = null;

            while ((value = file.读数据()) != null)
            {
                _value = value.Split(',');

                Type          type = _ass.GetType(_value[1]);
                IComputerItem obj  = (IComputerItem)Activator.CreateInstance(type, null);
                obj.load(数据项哈希存储.数据项哈希集);
                数据项哈希存储.AddItem(_value[0], obj);
            }
        }
示例#9
0
 public GatherItem(GatherField field, IComputerItem item)
 {
     this.field = field;
     this.item = item;
 }
示例#10
0
 public void 加载触屏数据()
 {
     _电压   = 数据项哈希存储.GetComputerItem("电压");
     _电流   = 数据项哈希存储.GetComputerItem("电流");
     _输入功率 = 数据项哈希存储.GetComputerItem("输入功率");
 }
示例#11
0
 public GatherItem(GatherField field, IComputerItem item)
 {
     this.field = field;
     this.item  = item;
 }
示例#12
0
        public IComputerItem GetComputerItem(string key)
        {
            IComputerItem data = 数据项哈希存储.GetComputerItem(key);

            return(data);
        }
示例#13
0
 public void 加载触屏数据()
 {
     _电压 = 数据项哈希存储.GetComputerItem("电压");
     _电流 = 数据项哈希存储.GetComputerItem("电流");
     _输入功率 = 数据项哈希存储.GetComputerItem("输入功率");
 }