예제 #1
0
        void Status(String inputString)
        {
            StatusUpdateEventArgs arg = new StatusUpdateEventArgs();

            arg.text = inputString;
            OnStatsUpdate(arg);
        }
예제 #2
0
        protected virtual void OnStatsUpdate(StatusUpdateEventArgs e)
        {
            StatusUpdateEventHandler handler = StatusUpdateHandler;

            if (handler != null)
            {
                handler(this, e);
            }
        }
예제 #3
0
 void StatusUpdate(Object sender, StatusUpdateEventArgs e)
 {
     statusTextBox.Invoke((MethodInvoker) delegate { statusTextBox.AppendText(e.text + Environment.NewLine); });
 }