예제 #1
0
        /// <summary>
        /// Stop the polling thread
        /// </summary>
        public override void Stop()
        {
            LogDebug("Stopping WFSTTelemetryProvider");
            isStopped = true;

            if (scanDialog != null)
            {
                scanDialog.Close();
                scanDialog = null;
            }

            if (t != null)
            {
                t.Join();
            }
        }
예제 #2
0
        /// <summary>
        /// Start the polling thread
        /// </summary>
        public override void Start()
        {
            if (isStopped)
            {
                LogDebug("Starting WFSTTelemetryProvider");

                if (scanDialog != null)
                {
                    scanDialog.Close();
                    scanDialog = null;
                }

                if (scanDialog == null)
                {
                    scanDialog = new ScanDialog();
                    scanDialog.onButtonClicked  = ScanButtonClicked;
                    scanDialog.StatusLabel.Text = "Click Initialize!";

                    Thread x = new Thread(new ParameterizedThreadStart(ShowForm));
                    x.Start(scanDialog);
                }
            }
        }