public static void NextStep(bool themeReadyOverride = false) { if (!IsLocationReady()) { LocationManager.ChangeLocation(); if (JsonConfig.firstRun) { AppContext.ShowPopup(_("Welcome! Please enter your location so the app can " + "determine sunrise and sunset times.")); } } else if (!IsThemeReady() && !themeReadyOverride) // Override if theme=None chosen { if (ThemeManager.filesVerified) { ThemeManager.SelectTheme(); } } else if (JsonConfig.firstRun) { AppContext.ShowPopup(_("The app is still running in the background. You can " + "access it at any time by clicking on the icon in the system tray.")); JsonConfig.firstRun = false; // Don't show this message again } }
private void OnNamedPipeClientMessage(NamedPipeConnection <string[], string[]> conn, string[] message) { ThemeManager.importPaths.AddRange(message); if (!ThemeManager.importMode) { notifyIcon.ContextMenuStrip.BeginInvoke(new Action(() => ThemeManager.SelectTheme())); } }
private void OnArgumentsReceived(string[] args) { ThemeManager.importPaths.AddRange(args); if (!ThemeManager.importMode) { notifyIcon.ContextMenuStrip.BeginInvoke(new Action(() => ThemeManager.SelectTheme())); } }
public static void RunInBackground() { if (!LocationManager.isReady || !ThemeManager.isReady) { return; } if (ThemeManager.currentTheme == null && (JsonConfig.firstRun || JsonConfig.settings.themeName != null)) { ThemeManager.SelectTheme(); } else if (JsonConfig.firstRun) { ShowPopup("The app is still running in the background. You can still access it " + "at any time by clicking on the icon in the system tray."); JsonConfig.firstRun = false; // Don't show this message again } }
public static void RunInBackground() { if (!LocationManager.isReady || !ThemeManager.isReady) { return; } if (ThemeManager.currentTheme == null) { ThemeManager.SelectTheme(); } else if (JsonConfig.firstRun) { notifyIcon.BalloonTipTitle = "WinDynamicDesktop"; notifyIcon.BalloonTipText = "The app is still running in the background. " + "You can access it at any time by clicking on the icon in the system tray."; notifyIcon.ShowBalloonTip(10000); JsonConfig.firstRun = false; // Don't show this message again } }
private static void OnThemeItemClick(object sender, EventArgs e) { ThemeManager.SelectTheme(); }