private void updateStatus(string status) { Debug.WriteLine("SyncManager updated status: " + status); SyncManagerUpdatedStatusEventHandler handler = OnStatusUpdated; if (handler != null) { handler(this, new SyncManagerUpdatedStatusEventArgs(status)); } }
private void managerUpdatedStatus(object sender, SyncManagerUpdatedStatusEventArgs e) { if (this.InvokeRequired) { SyncManagerUpdatedStatusEventHandler d = new SyncManagerUpdatedStatusEventHandler(managerUpdatedStatus); this.Invoke(d, new object[] { sender, e }); } else { statusStripMainLabel.Text = e.Status; } }