コード例 #1
0
ファイル: ICM411.cs プロジェクト: ajf8/marine-radio
 void cmdSrv_OnDistressAck(object sender, JsonRpcEventArgs e)
 {
     if (this.InvokeRequired)
     {
         this.Invoke(new cmdSrv_OnDistressAckDelegate(this.cmdSrv_OnDistressAck), sender, e);
     }
     else if (power)
     {
         NormalOperation();
         rightTopLabel.Text = "RCV DISTRESS ACK";
         AddEntAndClearReturnNormal();
         outgoingDistress.Stop();
         SelectChannel16();
     }
 }
コード例 #2
0
ファイル: ICM411.cs プロジェクト: ajf8/marine-radio
 void CmdServer_OnTestCall(object sender, JsonRpcEventArgs e)
 {
     if (this.InvokeRequired)
     {
         this.Invoke(new CmdServer_OnTestCallDelegate(this.CmdServer_OnTestCall), sender, e);
     }
     else if (power)
     {
         NormalOperation(false);
         dscEnvelope.TargetMmsi = e.Mmsi;
         dscIndicatorLabel.Visible = true;
         mainMenu.AddCycleItem(new CyclingMenuItem("TEST ACK", new MouseEventHandler(this.MenuItem_TestAck)));
         rightTopLabel.Text = "RCV TEST CALL";
         BeepNotification.Instance.Start();
         entButton.AddMouseClickHandler(new MouseEventHandler(this.RecvTestCall_Accept));
         AddClearReturnNormal();
     }
 }
コード例 #3
0
ファイル: ICM411.cs プロジェクト: ajf8/marine-radio
 void CmdServer_OnPositionRequest(object sender, JsonRpcEventArgs e)
 {
     if (this.InvokeRequired)
     {
         this.Invoke(new CmdServer_OnPositionRequestDelegate(this.CmdServer_OnPositionRequest), sender, e);
     }
     else if (power)
     {
         NormalOperation(false);
         dscIndicatorLabel.Visible = true;
         BeepNotification.Instance.Start();
         rightTopLabel.Text = "RCV POS REQUEST";
         if (ConfSingleton.Instance.AutoAck)
         {
             AddEntReturnToNormal();
             DelayedDispatch(DSCRequests.PositionReply(e.Mmsi));
         }
         else
         {
             dscEnvelope.TargetMmsi = e.Mmsi;
             entButton.AddMouseClickHandler(new MouseEventHandler(this.PosReply_ManualRespond));
         }
         AddClearReturnNormal();
         mainMenu.AddCycleItem(new CyclingMenuItem("POS REPLY", new MouseEventHandler(this.MenuItem_PosReply)));
     }
 }
コード例 #4
0
ファイル: ICM411.cs プロジェクト: ajf8/marine-radio
 private void CmdServer_OnTestAck(object sender, JsonRpcEventArgs e)
 {
     if (this.InvokeRequired)
     {
         this.Invoke(new CmdServer_OnTestAckDelegate(this.CmdServer_OnTestAck), sender, e);
     }
     else if (power)
     {
         NormalOperation();
         rightTopLabel.Text = "RCV TEST ACK";
         dscIndicatorLabel.Visible = true;
         entButton.AddMouseClickHandler(new MouseEventHandler(this.RecvTestAck_Accept));
         AddClearReturnNormal();
     }
 }
コード例 #5
0
ファイル: ICM411.cs プロジェクト: ajf8/marine-radio
 private void CmdServer_OnPollReply(object sender, JsonRpcEventArgs e)
 {
     if (this.InvokeRequired)
     {
         this.Invoke(new CmdServer_OnPollReplyDelegate(this.CmdServer_OnPollReply), sender, e);
     }
     else if (power)
     {
         NormalOperation(false);
         dscIndicatorLabel.Visible = true;
         rightTopLabel.Text = "RCV POLL REPLY";
         BeepNotification.Instance.Start();
         AddEntAndClearReturnNormal();
     }
 }