Exemplo n.º 1
0
        public static void PreparePopupWindows()
        {
            while (OpenNotifications.Count() < maxPopup)
            {
                int idx = OpenNotifications.Count();
                NotificationPopup toastNotification = new NotificationPopup("", "", -1, FormAnimator.AnimationMethod.Fade, FormAnimator.AnimationDirection.Up);

                //toastNotification.WindowState = FormWindowState.Minimized;
                //toastNotification.Visible = false;
                OpenNotifications.Add(toastNotification); Rectangle workingArea = Screen.GetWorkingArea(toastNotification);
                toastNotification.Location = new Point(workingArea.Right - toastNotification.Width,
                                                       workingArea.Bottom + (-idx - 1) * toastNotification.Height);

                toastNotification.Show();
            }
        }
Exemplo n.º 2
0
        public static void PopupOld(string title, string body, int duration, FormAnimator.AnimationMethod animationMethod, FormAnimator.AnimationDirection animationDirection)
        {
            NotificationPopup toastNotification = new NotificationPopup(title, body, duration, animationMethod, animationDirection);

            toastNotification.Show();
        }