예제 #1
0
 void InputDataDetector_FormClosing(object sender, FormClosingEventArgs e)
 {
     ThreadPool.QueueUserWorkItem((c) =>
     {
         _inputPinWatcher.Stop();
         _inputPinWatcher = null;
     });
 }
예제 #2
0
 void InputDataDetector_FormClosing(object sender, FormClosingEventArgs e)
 {
     ThreadPool.QueueUserWorkItem((c) =>
         {
             _inputPinWatcher.Stop();
             _inputPinWatcher = null;
         });
 }
예제 #3
0
        public InputDataDetector(string inputPinName, string inputPinCfgData) : base()
        {
            InitializeComponent();
            SetTitle("TXT_DETECT");

            _inputPinWatcher = new InputPinProbe(inputPinName, inputPinCfgData);
            _inputPinWatcher.InputPinData += new InputPinProbeHandler(_inputPinWatcher_InputPinData);

            this.FormClosing += new FormClosingEventHandler(InputDataDetector_FormClosing);
        }
예제 #4
0
        public InputDataDetector(string inputPinName, string inputPinCfgData) : base()
        {
            InitializeComponent();
            SetTitle("TXT_DETECT");

            _inputPinWatcher = new InputPinProbe(inputPinName, inputPinCfgData);
            _inputPinWatcher.InputPinData += new InputPinProbeHandler(_inputPinWatcher_InputPinData);

            this.FormClosing += new FormClosingEventHandler(InputDataDetector_FormClosing);
        }