示例#1
0
        public void _Initialize(eVIWER name, MainCtrl ctrl)
        {
            _ctrl       = ctrl;
            this.Name   = name.ToString();
            DataContext = this;

            _tmrUpdate          = new DispatcherTimer();
            _tmrUpdate.Interval = TimeSpan.FromMilliseconds(0.1);    //시간간격 설정
            _tmrUpdate.Tick    += new EventHandler(Tmr_Tick);        //이벤트 추가
            SetConnection(false);

            cmb_Dev.Items.Clear();
            foreach (ePWRTYPE item in Enum.GetValues(typeof(ePWRTYPE)))
            {
                cmb_Dev.Items.Add(item.ToString());
            }
            cmb_Dev.SelectedIndex = 0;

            cmb_Port.Items.Clear();
            foreach (ePWR_PortName item in Enum.GetValues(typeof(ePWR_PortName)))
            {
                cmb_Port.Items.Add(item.ToString());
            }
            cmb_Port.SelectedIndex = 0;
        }
        public void _Initialize(eVIWER name, MainCtrl ctrl)
        {
            _ctrl       = ctrl;
            this.Name   = name.ToString();
            DataContext = this;

            _tmrUpdate          = new DispatcherTimer();
            _tmrUpdate.Interval = TimeSpan.FromMilliseconds(0.1);    //시간간격 설정
            _tmrUpdate.Tick    += new EventHandler(Tmr_Tick);        //이벤트 추가

            SetConnection(false);
        }