Inheritance: System.EventArgs
        private void mp_StdOutEvent(object sender, StdOutEventArgs e)
        {
            Invoke((MethodInvoker)delegate
            {
                if (e.StdOut.Equals("[ACTION] CLEAR_OUTPUT"))
                {
                    outputTextbox.Clear();
                    return;
                }

                outputTextbox.AppendText("\n" + e.StdOut);
                // auto scroll to end
                outputTextbox.SelectionStart = outputTextbox.TextLength;
                outputTextbox.ScrollToCaret();
            });
        }
Esempio n. 2
0
 protected virtual void OnStdOut(StdOutEventArgs e)
 {
     if (StdOutEvent != null)
     {
         StdOutEvent(this, e);
     }
 }