private void syncer_SyncEnded(object sender, TimeSpanEventArgs e) { Log += "\n=== " + e.ts.ToString() + "\n"; uiTaskFactory.StartNew( CommandManager.InvalidateRequerySuggested); }
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); } }
private void syncer_SyncEnded(object sender, TimeSpanEventArgs e) { Log += "\n=== " + e.ts.ToString() + "\n"; }