public frmStatus(frmLocalCtrl flc) { InitializeComponent(); m_frmLocalCtrl = flc; LOCAL_ADDRESS = new IPEndPoint(_GetLocalIP(), 1799); }
public frmShowTime(frmLocalCtrl frmParent) { // // The InitializeComponent() call is required for Windows Forms designer support. // m_frmLocalCtrl = frmParent; InitializeComponent(); // // TODO: Add constructor code after the InitializeComponent() call. // // ControlArm(null); }
public frmInfo(frmLocalCtrl f) { m_frmLocalCtrl = f; InitializeComponent(); m_UdpSensorNet = new UdpClient(); SENSOR_NET_ADDRESS = new IPEndPoint(_GetLocalIP(), 1699);//new IPEndPoint(IPAddress.Parse("192.168.1.4"), 1699); StartLearn = new StartLearnEventHandler(OnStartLearn); LearnFinish = new LearnFinishEventHandler(OnLearnFinish); #region 写映射表 int counter = 0; for (; counter < CATEGORY_COUNT; counter++) { CategoryMap[counter] = counter; } for (counter = 0; counter < NAME_COUNT; counter++) { NameMap[counter] = counter; } #endregion }
public frmInteropCtrl(frmLocalCtrl f) { m_frmLocalCtrl = f; InitializeComponent(); IPAddress temp = _GetLocalIP(); if (null != temp) { SENSOR_NET_ADDRESS = new IPEndPoint(temp, 1699); // new IPEndPoint(IPAddress.Parse("192.168.1.5"), 1699); LOCAL_ADDRESS = new IPEndPoint(temp, 1799); ROBOT_ADDRESS = new IPEndPoint(IPAddress.Parse("192.168.1.7"), 1599); } GameControl[0,0] = new GameControlEventHandler(GameStatusChange_0_0); GameControl[0,1] = new GameControlEventHandler(GameStatusChange_0_1); GameControl[0,3] = new GameControlEventHandler(GameStatusChange_0_3); GameControl[0,4] = new GameControlEventHandler(GameStatusChange_0_4); GameControl[1,0] = new GameControlEventHandler(GameStatusChange_1_0); GameControl[1,1] = new GameControlEventHandler(GameStatusChange_1_1); GameControl[1,3] = new GameControlEventHandler(GameStatusChange_1_3); GameControl[1,4] = new GameControlEventHandler(GameStatusChange_1_4); GameControl[3,0] = new GameControlEventHandler(GameStatusChange_3_0); GameControl[3,1] = new GameControlEventHandler(GameStatusChange_3_1); GameControl[3,3] = new GameControlEventHandler(GameStatusChange_3_3); GameControl[3,4] = new GameControlEventHandler(GameStatusChange_3_4); CurtainControl[0] = new GestureControlEventHandler(CurtainClose); CurtainControl[1] = new GestureControlEventHandler(CurtainOpen); CurtainControl[2] = new GestureControlEventHandler(CurtainHold); LightControl[0] = new GestureControlEventHandler(LightHold); LightControl[1] = new GestureControlEventHandler(LightShift); DtcDataRcv += new SensorDataRcvEventHandler(OnDtcDataRcv); }
private void btnLocalCtrl_Click(object sender, EventArgs e) { this.Hide(); m_voice.Speak("本地控制功能", SpeechVoiceSpeakFlags.SVSFlagsAsync); m_frmLocalCtrl = new frmLocalCtrl(this); m_frmLocalCtrl.Show(); }