Exemple #1
0
        //private void CollRealData()
        //{
        //    GRRealDataCommand realCmd = new GRRealDataCommand(_defGrStation);
        //    Task realTask = new Task(realCmd, new ImmediateTaskStrategy() );
        //    _grTaskSch.Tasks.Add( realTask );
        //}
        //private void SetTemp()
        //{
        //    GRSetOutSideTempCommand c = new GRSetOutSideTempCommand( _defGrStation, 21.9F );
        //    Task t = new Task( c, new ImmediateTaskStrategy() );
        //    _grTaskSch.Tasks.Add( t );
        //}
        //private void SetOutSideMode()
        //{
        //    GRSetOutSideTempModeCommand c = new GRSetOutSideTempModeCommand( _defGrStation, OutSideTempWorkMode.SetByComputer );
        //    Task t = new Task( c, new ImmediateTaskStrategy() );
        //    _grTaskSch.Tasks.Add( t );
        //}
        private void CommPortProxy_ReceiveAutoReport(object sender, EventArgs e)
        {
            //try
            //{
            CommPortProxy cpp = (CommPortProxy)sender;

            byte[] bs = cpp.AutoReportData;
            string s  = CT.BytesToString(bs) + Environment.NewLine + bs.Length;

            //MsgBox.Show (s );o
            AddLog(s);
            GRAlarmData ad;

            if (GRAlarmData.ProcessAutoReport(bs, out ad) == CommResultState.Correct)
            {
                frmPropertiesGrid f = new frmPropertiesGrid();
                f.ShowMe(ad, "");
            }
            //}
            //catch(Exception ex)
            //{
            //    MsgBox.Show( ex.ToString() );
            //}
        }
Exemple #2
0
        private void showSingles()
        {
            frmPropertiesGrid f = new frmPropertiesGrid();

            f.ShowMe(Singles.S);
        }
Exemple #3
0
        private void showXgCfg()
        {
            frmPropertiesGrid f = new frmPropertiesGrid();

            f.ShowMe(XGConfig.Default);
        }
Exemple #4
0
        private void ShowTaskscheduler()
        {
            frmPropertiesGrid f = new frmPropertiesGrid();

            f.ShowMe(Singles.S.TaskScheduler);
        }