Example #1
0
 private void f_注销仪表数据(HarrProgressBar 数字仪表)
 {
     Computer.IComputerItem item = 数据存储.数据项哈希存储.GetComputerItem(数字仪表.绑定参数编码);
     if (item == null)
     {
         return;
     }
     item.DataShow -= 数字仪表.显示仪表数据;
 }
Example #2
0
        private void f_绑定仪表数据(HarrProgressBar 数字仪表, string 单体类数据编码, int 单体类数据计算类型)
        {
            switch (单体类数据计算类型)
            {
            case 0:
                数据项 item = 数据存储.数据项哈希存储.GetItem(单体类数据编码);
                if (item == null)
                {
                    return;
                }
                item.DataShow += 数字仪表.显示仪表数据;
                break;

            case 1:
                Computer.IComputerItem ComputerItem = 数据存储.数据项哈希存储.GetComputerItem(单体类数据编码);
                if (ComputerItem == null)
                {
                    return;
                }
                ComputerItem.DataShow += 数字仪表.显示仪表数据;
                break;
            }
        }