private void commonViewControl1_BitRateChanged(object sender, DecimalEventArg e)
 {
     try
     {
         Cursor = Cursors.WaitCursor;
         OnError(0, "-");
         sx1231.SetBitRate(e.Value);
         receiverViewControl1.BitRate = sx1231.BitRate;
         packetHandlerView1.BitRate = sx1231.BitRate;
     }
     catch (Exception exception)
     {
         OnError(1, exception.Message);
     }
     finally
     {
         Cursor = Cursors.Default;
     }
 }
Exemple #2
0
 private void transmitterViewControl1_PllBandwidthChanged(object sender, DecimalEventArg e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         this.OnError((byte)0, "-");
         this.device.SetPllBandwidth(e.Value);
     }
     catch (Exception ex)
     {
         this.OnError((byte)1, ex.Message);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Exemple #3
0
 private void temperatureViewControl1_TempCalibrateChanged(object sender, DecimalEventArg e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         this.OnError((byte)0, "-");
         this.device.SetTempCalibrate(e.Value);
     }
     catch (Exception ex)
     {
         this.OnError((byte)1, ex.Message);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Exemple #4
0
 private void commonViewControl1_FrequencyXoChanged(object sender, DecimalEventArg e)
 {
     this.device.FrequencyXo = this.commonViewControl1.FrequencyXo;
 }
Exemple #5
0
 private void receiverViewControl1_TimeoutSyncWordChanged(object sender, DecimalEventArg e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         this.OnError((byte)0, "-");
         this.device.SetTimeoutSyncWord(e.Value);
     }
     catch (Exception ex)
     {
         this.OnError((byte)1, ex.Message);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Exemple #6
0
 private void commonViewControl1_FrequencyRfChanged(object sender, DecimalEventArg e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         this.OnError((byte)0, "-");
         this.device.SetFrequencyRf(e.Value);
     }
     catch (Exception ex)
     {
         this.OnError((byte)1, ex.Message);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Exemple #7
0
 private void commonViewControl1_BitrateFracChanged(object sender, DecimalEventArg e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         this.OnError((byte)0, "-");
         this.device.SetBitrateFrac(e.Value);
         this.receiverViewControl1.Bitrate = this.device.Bitrate;
         this.packetHandlerView1.Bitrate = this.device.Bitrate;
     }
     catch (Exception ex)
     {
         this.OnError((byte)1, ex.Message);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
 private void transmitterViewControl1_OutputPowerChanged(object sender, DecimalEventArg e)
 {
     try
     {
         Cursor = Cursors.WaitCursor;
         OnError(0, "-");
         sx1231.SetOutputPower(e.Value);
     }
     catch (Exception exception)
     {
         OnError(1, exception.Message);
     }
     finally
     {
         Cursor = Cursors.Default;
     }
 }
 private void temperatureViewControl1_TempCalibrateChanged(object sender, DecimalEventArg e)
 {
     try
     {
         Cursor = Cursors.WaitCursor;
         OnError(0, "-");
         sx1231.SetTempCalibrate(e.Value);
     }
     catch (Exception exception)
     {
         OnError(1, exception.Message);
     }
     finally
     {
         Cursor = Cursors.Default;
     }
 }
Exemple #10
0
 private void receiverViewControl1_TimeoutRxStartChanged(object sender, DecimalEventArg e)
 {
     try
     {
         Cursor = Cursors.WaitCursor;
         OnError(0, "-");
         sx1231.SetTimeoutRxStart(e.Value);
     }
     catch (Exception exception)
     {
         OnError(1, exception.Message);
     }
     finally
     {
         Cursor = Cursors.Default;
     }
 }
Exemple #11
0
 private void commonViewControl1_ListenCoefRxChanged(object sender, DecimalEventArg e)
 {
     try
     {
         Cursor = Cursors.WaitCursor;
         OnError(0, "-");
         sx1231.SetListenCoefRx(e.Value);
     }
     catch (Exception exception)
     {
         OnError(1, exception.Message);
     }
     finally
     {
         Cursor = Cursors.Default;
     }
 }
Exemple #12
0
 private void commonViewControl1_FrequencyXoChanged(object sender, DecimalEventArg e)
 {
     sx1231.FrequencyXo = commonViewControl1.FrequencyXo;
 }