void Status(String inputString) { StatusUpdateEventArgs arg = new StatusUpdateEventArgs(); arg.text = inputString; OnStatsUpdate(arg); }
protected virtual void OnStatsUpdate(StatusUpdateEventArgs e) { StatusUpdateEventHandler handler = StatusUpdateHandler; if (handler != null) { handler(this, e); } }
void StatusUpdate(Object sender, StatusUpdateEventArgs e) { statusTextBox.Invoke((MethodInvoker) delegate { statusTextBox.AppendText(e.text + Environment.NewLine); }); }