예제 #1
0
        private void updateStatus(string status)
        {
            Debug.WriteLine("SyncManager updated status: " + status);
            SyncManagerUpdatedStatusEventHandler handler = OnStatusUpdated;

            if (handler != null)
            {
                handler(this, new SyncManagerUpdatedStatusEventArgs(status));
            }
        }
예제 #2
0
 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;
     }
 }