Example #1
0
        private void syncer_SyncEnded(object sender, TimeSpanEventArgs e)
        {
            Log += "\n=== " + e.ts.ToString() + "\n";

            uiTaskFactory.StartNew(
                CommandManager.InvalidateRequerySuggested);
        }
Example #2
0
 private void SettingsWorker_SleepTimeUpdated(object sender, TimeSpanEventArgs e)
 {
     try
     {
         if (InvokeRequired)
         {
             Invoke(new EventHandler <TimeSpanEventArgs>(SettingsWorker_SleepTimeUpdated), new object[] { sender, e });
         }
         else
         {
             textBoxSleepTime.Text = e.Value.TotalMinutes.ToString();
         }
     }
     catch (Exception ex)
     {
         FormUtilities.ShowError(this, ex);
     }
 }
Example #3
0
 private void syncer_SyncEnded(object sender, TimeSpanEventArgs e)
 {
     Log += "\n=== " + e.ts.ToString() + "\n";
 }