예제 #1
0
        private void decodeButton_Click(object sender, EventArgs e)
        {
            tabControl.SelectTab(logTabPage);
            if (_dispatcher.Status.IsRunning)
            {
                _dispatcher.CancelJob();
            }
            else
            {
                jobPropertyGrid.Enabled = false;
                jobToolStrip.Enabled    = false;
                exitButton.Enabled      = false;
                decodeButton.Text       = "Cancel";

                _timer.Enabled = true;
                _dispatcher.Status.Reset();
                _dispatcher.ExecuteJob();
            }
        }