public FormWrapper() { Application.ApplicationExit += new EventHandler(OnApplicationExit); SystemEvents.PowerModeChanged += new PowerModeChangedEventHandler(OnPowerModeChanged); JsonConfig.LoadConfig(); wcsService = new WallpaperChangeScheduler(); RegistryKey startupKey = Registry.CurrentUser.OpenSubKey(registryStartupLocation); startOnBoot = startupKey.GetValue("WinDynamicDesktop") != null; startupKey.Close(); InitializeComponent(); if (!Directory.Exists("images")) { DownloadImages(); } else if (JsonConfig.firstRun) { UpdateLocation(); } else { wcsService.StartScheduler(); } }
public FormWrapper() { Application.ApplicationExit += new EventHandler(OnApplicationExit); EnforceSingleInstance(); SystemEvents.PowerModeChanged += new PowerModeChangedEventHandler(OnPowerModeChanged); JsonConfig.LoadConfig(); _wcsService = new WallpaperChangeScheduler(); InitializeComponent(); _startupManager = UwpDesktop.GetStartupManager(notifyIcon.ContextMenu.MenuItems[6]); if (!Directory.Exists("images")) { DownloadImages(); } else if (JsonConfig.firstRun) { UpdateLocation(); } else { _wcsService.StartScheduler(); } }
public AppContext() { EnforceSingleInstance(); JsonConfig.LoadConfig(); InitializeComponent(); _startupManager = UwpDesktop.GetStartupManager(notifyIcon.ContextMenu.MenuItems[6]); _wcsService = new WallpaperChangeScheduler(); if (!Directory.Exists("images")) { DownloadImages(); } else if (JsonConfig.settings.location == null) { UpdateLocation(); } else { _wcsService.RunScheduler(); } UpdateChecker.Initialize(notifyIcon); }
public AppContext(string[] args) { JsonConfig.LoadConfig(); Localization.Initialize(); ThemeManager.importPaths = args.Where(System.IO.File.Exists).ToList(); HandleMultiInstance(); InitializeTrayIcon(); LocationManager.Initialize(); ThemeManager.Initialize(); wpEngine.RunScheduler(); LaunchSequence.NextStep(); UpdateChecker.Initialize(); }
public AppContext() { EnforceSingleInstance(); JsonConfig.LoadConfig(); InitializeGui(); ThemeManager.Initialize(); LocationManager.Initialize(); wcsService = new WallpaperChangeScheduler(); if (LocationManager.isReady && ThemeManager.isReady) { wcsService.RunScheduler(); } UpdateChecker.Initialize(); }
public AppContext(string[] args) { // TODO Check tab order on all dialogs DebugLogger.WriteLogFile(); JsonConfig.LoadConfig(); Localization.Initialize(); ThemeManager.importPaths = args.Where(System.IO.File.Exists).ToList(); HandleMultiInstance(); InitializeTrayIcon(); LocationManager.Initialize(); ThemeManager.Initialize(); ScriptManager.Initialize(); wpEngine.RunScheduler(); LaunchSequence.NextStep(); UpdateChecker.Initialize(); }
public AppContext(string[] args) { ThemeManager.importPaths = args.Where(System.IO.File.Exists).ToList(); HandleMultiInstance(); JsonConfig.LoadConfig(); InitializeTrayIcon(); ThemeManager.Initialize(); LocationManager.Initialize(); wpEngine = new WallpaperChangeScheduler(); if (LocationManager.isReady && ThemeManager.isReady) { wpEngine.RunScheduler(); } UpdateChecker.Initialize(); }
public FormWrapper() { Application.ApplicationExit += new EventHandler(OnApplicationExit); SystemEvents.PowerModeChanged += new PowerModeChangedEventHandler(OnPowerModeChanged); InitializeComponent(); JsonConfig.LoadConfig(); if (JsonConfig.firstRun) { ShowMainForm(); } else { wcsService.StartScheduler(); } if (!File.Exists("images.zip")) { DownloadImagesZip(); } }