Exemple #1
0
        /// <summary>
        /// Creates an animated message popup at the bottom-right corner of the screen
        /// </summary>
        /// <param name="message">The message this form should display</param>
        /// <param name="popDelay">The time this form will be visible in seconds</param>
        /// <param name="rem">The reminder that is in this message popup. Gives the user the option to disable it</param>
        public static void MakeMessagePopup(string message, int popDelay, Reminder rem)
        {
            RemindMeMessageForm popupForm = new RemindMeMessageForm(message, popDelay, rem);

            popupForm.Show();

            popupForms.Add(popupForm); //Add the popupform
        }
Exemple #2
0
        /// <summary>
        /// Creates an animated message popup at the bottom-right corner of the screen
        /// </summary>
        /// <param name="message">The message this form should display</param>
        /// <param name="popDelay">The time this form will be visible in seconds</param>
        public static void MakeMessagePopup(string message, int popDelay, string title = "")
        {
            RemindMeMessageForm popupForm = new RemindMeMessageForm(message, popDelay);

            if (title != "")
            {
                popupForm.Title = title;
            }

            popupForm.Invoke((MethodInvoker)(() =>
            {
                popupForm.Show();
            }));
            popupForms.Add(popupForm); //Add the popupform
        }