void w_StatusChanged(object sender, WorkerEventArgs e) { Invoke((MethodInvoker) delegate { lvOut.Items.Add(e.Message); }); }
private void SendMessage(string stMessage) { WorkerEventArgs e = new WorkerEventArgs(); e.Message = stMessage; if (StatusChanged != null) { StatusChanged(this, e); } }