public static void ShowWallpaperSavedBalloonTip(NotifyIcon taskIcon) { var details = new BalloonTipDetails(ToolTipIcon.Info, "Wallpaper Saved!", $"Wallpaper saved to {Settings.Default.defaultSaveLocation}", 750); ShowBalloonTip(taskIcon, details); }
//====================================================================== // Send to system tray //====================================================================== public static void FakeClose(NotifyIcon taskIcon) { var details = new BalloonTipDetails(ToolTipIcon.Info, "Reddit Wallpaper Changer", "Down here if you need me!", 700); ShowBalloonTip(taskIcon, details); }
public static void ShowWallpaperAlreadyExistsBalloonTip(NotifyIcon taskIcon) { var details = new BalloonTipDetails(ToolTipIcon.Info, "Already Saved!", "No need to save this wallpaper as it already exists in your wallpapers folder! :)", 750); ShowBalloonTip(taskIcon, details); }
public static void ShowBalloonTip(NotifyIcon notifyIcon, BalloonTipDetails details) { if (Settings.Default.disableNotifications) { return; } notifyIcon.BalloonTipIcon = details.ToolTipIcon; notifyIcon.BalloonTipTitle = details.Title; notifyIcon.BalloonTipText = details.Text; notifyIcon.ShowBalloonTip(details.Duration); }