Beispiel #1
0
 private void ScanStarted(object sender, ScanStartStopEventArgs e)
 {
     if (e.Started == 1)
     {
         SensConsCommand.Enabled = false;
     }
     else
     {
         SensConsCommand.Enabled = true;
     }
 }
Beispiel #2
0
        private void backgroundWorker2_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            ann.Visible        = false;
            ScanButton.Enabled = true;
/********* Send Stop Scan event (argument 0) to enable "SEND" button in Form1*/
            ScanStartStopEventArgs args = new ScanStartStopEventArgs(0);

            ScanStartStop(this, args);
/*************************************************************************/

            ParseRxString();
        }
Beispiel #3
0
        private void ScanButton_Click(object sender, EventArgs e)
        {
            if (tcp_connected)
            {
                for (int i = 0; i < 16; i++)
                {
                    rfdata[i].SetAverage(-89);
                    rfdata[i].SetPeak(-89);
                    rfdata[i].SetChannel(i + (int)(rfchannels.CH11));
                }
                ChartUpdate();
                this.backgroundWorker2.RunWorkerAsync();
                ScanButton.Enabled = false;
                ann.Visible        = true;
/********* Send Start Scan event (argument 1) to disable "SEND" button in Form1*/
                ScanStartStopEventArgs args = new ScanStartStopEventArgs(0x01);
                ScanStartStop(this, args);
/******************************************************************************/
            }
            else
            {
                SetHostNameText("TCP connection is not established");
            }
        }