Exemplo n.º 1
0
 private void sequencerViewControl1_Timer2CoefChanged(object sender, ByteEventArg e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         this.OnError((byte)0, "-");
         this.device.SetTimer2Coef(e.Value);
     }
     catch (Exception ex)
     {
         this.OnError((byte)1, ex.Message);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Exemplo n.º 2
0
 private void commonViewControl1_ModulationShapingChanged(object sender, ByteEventArg e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         this.OnError((byte)0, "-");
         this.device.SetModulationShaping(e.Value);
     }
     catch (Exception ex)
     {
         this.OnError((byte)1, ex.Message);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Exemplo n.º 3
0
 private void receiverViewControl1_BarkerTrackingThreshChanged(object sender, ByteEventArg e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         this.OnError((byte)0, "-");
         this.device.SetBarkerTrackingThresh(e.Value);
     }
     catch (Exception ex)
     {
         this.OnError((byte)1, ex.Message);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Exemplo n.º 4
0
 private void receiverViewControl1_PreambleDetectorTolChanged(object sender, ByteEventArg e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         this.OnError((byte)0, "-");
         this.device.SetPreambleDetectorTol(e.Value);
     }
     catch (Exception ex)
     {
         this.OnError((byte)1, ex.Message);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Exemplo n.º 5
0
 private void packetHandlerView1_SyncSizeChanged(object sender, ByteEventArg e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         this.OnError((byte)0, "-");
         this.device.SetSyncSize(e.Value);
     }
     catch (Exception ex)
     {
         this.OnError((byte)1, ex.Message);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Exemplo n.º 6
0
 private void commonViewControl1_ModulationShapingChanged(object sender, ByteEventArg e)
 {
     try
     {
         Cursor = Cursors.WaitCursor;
         OnError(0, "-");
         sx1231.SetModulationShaping(e.Value);
     }
     catch (Exception exception)
     {
         OnError(1, exception.Message);
     }
     finally
     {
         Cursor = Cursors.Default;
     }
 }
Exemplo n.º 7
0
 private void receiverViewControl1_OokFixedThreshChanged(object sender, ByteEventArg e)
 {
     try
     {
         Cursor = Cursors.WaitCursor;
         OnError(0, "-");
         sx1231.SetOokFixedThresh(e.Value);
     }
     catch (Exception exception)
     {
         OnError(1, exception.Message);
     }
     finally
     {
         Cursor = Cursors.Default;
     }
 }
Exemplo n.º 8
0
 private void packetHandlerView1_SyncTolChanged(object sender, ByteEventArg e)
 {
     try
     {
         Cursor = Cursors.WaitCursor;
         OnError(0, "-");
         sx1231.SetSyncTol(e.Value);
     }
     catch (Exception exception)
     {
         OnError(1, exception.Message);
     }
     finally
     {
         Cursor = Cursors.Default;
     }
 }
Exemplo n.º 9
0
 private void loRaViewControl1_SpreadingFactorChanged(object sender, ByteEventArg e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         this.OnError((byte)0, "-");
         this.device.SetSpreadingFactor(e.Value);
     }
     catch (Exception ex)
     {
         this.OnError((byte)1, ex.Message);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }