AmandaInterface.mainForm.RunCode C# (CSharp) Метод

RunCode() приватный Метод

private RunCode ( ) : void
Результат void
        private void RunCode()
        {
            stop_bwTextToConsole = false;
            // show expression
            tbConsole.SelectionStart = tbConsole.TextLength;
            tbConsole.SelectionBackColor = Color.Yellow;
            tbConsole.AppendText("> " + tbRun.Text + "\r\n");
            tbConsole.SelectionBackColor = Color.Transparent;
            // show output
            isRunning = true;
            // change runButton to stopButton
            runButton.Click -= new EventHandler(RunCodeHandler);
            runButton.Click += new EventHandler(StopCodeHandler);
            runButton.Image = Properties.Resources.stop;
            // disable the rest of the buttons
            loadButton.Enabled = false;

            if (bwInterpret.IsBusy != true && bwTextToConsole.IsBusy != true)
            {
                bwTextToConsole.RunWorkerAsync();
                bwInterpret.RunWorkerAsync();
            }
        }