예제 #1
0
        private void MimicNodeTree_AfterCheckNode(object sender, NodeEventArgs e)
        {
            var tl = sender as TreeList;

            TreeChildAllCheck(tl, e.Node.Nodes);
            MimicTreeNodes pointNodes = (tl.DataSource as MimicTreeNodes).SearchNodes(300);

            GeneralConf.SetChannelList(pointNodes.Where(x => x.Active));
            switch (tl.Name)
            {
            case "MimicNodeTree1":
                List_Bandpass1.DataSource = GeneralConf.CommonBandpassList;
                cbeAlarmScale_Update(cbe_alarmScale1);
                break;

            case "MimicNodeTree2":
                List_Bandpass2.DataSource = GeneralConf.CommonBandpassList;
                cbeAlarmScale_Update(cbe_alarmScale2);
                break;

            case "MimicNodeTree3":
                List_Bandpass3.DataSource = GeneralConf.CommonBandpassList;
                cbeAlarmScale_Update(cbe_alarmScale3);
                break;
            }
        }
예제 #2
0
        private void MimicNodeTree_AfterCheckNode(object sender, NodeEventArgs e)
        {
            TreeChildAllCheck(e.Node.Nodes);
            MimicTreeNodes pointNodes = (MimicNodeTree.DataSource as MimicTreeNodes).SearchNodes(300);

            PeriodConf.SetChannelList(pointNodes.Where(x => x.Active));
            List_Bandpass.DataSource = PeriodConf.CommonBandpassList;
        }