/***************************** *** *****************************/ //just calls PluginManagement.ForceRedownload(); and then update_button_clicked private void RedownloadAddons(object sender, RoutedEventArgs e) { if (PluginManagement.ForceRedownload()) { update_button_clicked(sender, e); } }
/// <summary> /// This constructor deals with creating or expanding the configuration file, setting the DataContext, and checking for application updates. /// </summary> public OpeningView() { DataContext = OpeningViewModel.GetInstance; _configurationManager = new ConfigurationManager(); var configuration = new Configuration(_configurationManager); configuration.CheckSelfUpdates(); configuration.DetermineSystemType(); _pluginManagement = new PluginManagement(_configurationManager); _pluginManagement.DisplayAddonStatus(); InitializeComponent(); //update notification if (File.Exists(UpdateNotificationFile)) { Process.Start(releases_url); File.Delete(UpdateNotificationFile); } }
/// <summary> /// This constructor deals with creating or expanding the configuration file, setting the DataContext, and checking for application updates. /// </summary> public OpeningView() { _viewModel = OpeningViewModel.GetInstance; DataContext = _viewModel; _configurationManager = new ConfigurationManager(); _pluginManagement = new PluginManagement(_configurationManager); _pluginManagement.DisplayAddonStatus(); var configuration = new Configuration(_configurationManager, new UpdateHelper(new WebClientWrapper()), new FileSystemManager()); InitializeComponent(); SetUpdateButtonVisibility(configuration); //update notification if (File.Exists(UpdateNotificationFile)) { Process.Start(releases_url); File.Delete(UpdateNotificationFile); } }