/// <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; Configuration.CheckSelfUpdates(); Configuration.DetermineSystemType(); Configuration.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 AddOnSelector() { theViewModel = new OpeningViewModel(); DataContext = theViewModel; Configuration.CheckSelfUpdates(theViewModel); Configuration.DetermineSystemType(); Configuration.DisplayAddonStatus(theViewModel); 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() { 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); } }