private async void ToggleUpdater_Click(object sender, RoutedEventArgs e) { if (UpdaterController.IsRunning()) { UpdaterController.StopUpdater(); ToggleUpdater.Content = "Start"; } else { await UpdaterController.StartUpdater(); ToggleUpdater.Content = "Stop"; } }
private void Cancel_Click(object sender, RoutedEventArgs e) { Settings settings = SettingsController.GetSettings(); PopulateFields(settings.Domain, settings.Token, settings.Interval); DisableEdition(); if (UpdaterController.IsRunning()) { ToggleUpdater.Content = "Stop"; } else { ToggleUpdater.Content = "Start"; } }