public static void ChangeLocation() { if (locationDialog == null) { locationDialog = new InputDialog(); locationDialog.FormClosed += OnLocationDialogClosed; locationDialog.Show(); } locationDialog.BringToFront(); }
public static void ChangeLocation() { if (locationDialog == null) { locationDialog = new InputDialog(); locationDialog.FormClosed += OnLocationDialogClosed; locationDialog.Show(); } else { locationDialog.Activate(); } }
private void OnLocationDialogClosed(object sender, EventArgs e) { locationDialog = null; if (JsonConfig.firstRun) { notifyIcon.BalloonTipText = "The app is still running in the background. " + "You can access it at any time by right-clicking on this icon."; notifyIcon.ShowBalloonTip(10000); JsonConfig.firstRun = false; // Don't show this message again } }
public void UpdateLocation() { if (locationDialog == null) { locationDialog = new InputDialog { _wcsService = _wcsService }; locationDialog.FormClosed += OnLocationDialogClosed; locationDialog.Show(); } else { locationDialog.Activate(); } }
private void OnLocationDialogClosed(object sender, EventArgs e) { locationDialog = null; if (JsonConfig.settings.location == null) { notifyIcon.BalloonTipText = "This app cannot display wallpapers until you have " + "entered a valid location. Right-click on this icon and click Update Location " + "to fix this."; notifyIcon.ShowBalloonTip(10000); } else if (JsonConfig.firstRun) { notifyIcon.BalloonTipText = "The app is still running in the background. " + "You can access it at any time by right-clicking on this icon."; notifyIcon.ShowBalloonTip(10000); JsonConfig.firstRun = false; // Don't show this message again } }
private static void OnLocationDialogClosed(object sender, EventArgs e) { locationDialog = null; LaunchSequence.NextStep(); }
private void OnLocationDialogClosed(object sender, EventArgs e) { locationDialog = null; BackgroundNotify(); }
private void OnLocationDialogClosed(object sender, EventArgs e) { locationDialog = null; TryStartScheduler(true); }