Exemplo n.º 1
0
        ///<summary>Displays a notification.</summary>
        ///<param name="owner">The form that will own the notification.</param>
        ///<param name="text">The text to display.</param>
        ///<param name="isHtml">Whether the text should be displayed as HTML.</param>
        ///<param name="duration">The length of time to display the notification.</param>
        public static void Show(IWin32Window owner, string text, bool isHtml, TimeSpan duration)
        {
            var form = new InfoMessage { duration = duration };
            form.label.Text = text;
            form.label.AllowHtmlString = isHtml;

            form.Show(owner);
            form.FadeIn();
        }