Beispiel #1
0
 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();
     }
 }
Beispiel #2
0
 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();
     }
 }
Beispiel #3
0
 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)));
     }
 }
Beispiel #4
0
 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();
     }
 }
Beispiel #5
0
 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();
     }
 }