/// <summary> /// 設定取得ボタンクリックイベント /// </summary> /// <param name="sender">sender</param> /// <param name="e">e</param> private void btnSettingGet_Click(object sender, EventArgs e) { // 設定取得 GetSettingCommand command = new GetSettingCommand(); command.OnAnalyzed += evSettingReceived; usrCommControl.Send(command); }
/// <summary> /// 接続完了イベント /// </summary> /// <param name="sender">sender</param> /// <param name="e">e</param> private void onConnected(object sender, EventArgs e) { // 設定取得 if ((usrCommControl.SocketInfo.IPString != "192.168.3.2") && (usrCommControl.SocketInfo.IPString != "192.168.3.3") && (usrCommControl.SocketInfo.IPString != "192.168.3.4")) { GetSettingCommand command = new GetSettingCommand(); command.OnAnalyzed += evSettingReceivedAtConnected; usrCommControl.Send(command); } }