//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() ); //} }
private void showSingles() { frmPropertiesGrid f = new frmPropertiesGrid(); f.ShowMe(Singles.S); }
private void showXgCfg() { frmPropertiesGrid f = new frmPropertiesGrid(); f.ShowMe(XGConfig.Default); }
private void ShowTaskscheduler() { frmPropertiesGrid f = new frmPropertiesGrid(); f.ShowMe(Singles.S.TaskScheduler); }