コード例 #1
0
        public static void ShowWallpaperSavedBalloonTip(NotifyIcon taskIcon)
        {
            var details = new BalloonTipDetails(ToolTipIcon.Info, "Wallpaper Saved!",
                                                $"Wallpaper saved to {Settings.Default.defaultSaveLocation}", 750);

            ShowBalloonTip(taskIcon, details);
        }
コード例 #2
0
        //======================================================================
        // 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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
        }