Esempio n. 1
0
        private async void ToggleUpdater_Click(object sender, RoutedEventArgs e)
        {
            if (UpdaterController.IsRunning())
            {
                UpdaterController.StopUpdater();
                ToggleUpdater.Content = "Start";
            }
            else
            {
                await UpdaterController.StartUpdater();

                ToggleUpdater.Content = "Stop";
            }
        }
Esempio n. 2
0
        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";
            }
        }