Exemple #1
0
        public void ShowTextNotification(Color c, string text, TimeSpan time)
        {
            TextNotification notification = new TextNotification();

            notification.DisplayedTime = TimeSpan.Zero;
            notification.Timeout       = time;
            notification.FadeTime      = new TimeSpan((long)(notification.Timeout.Ticks * 0.1));
            notification.Color         = c;
            notification.Text          = text;

            notifications.Add(notification);
        }
Exemple #2
0
        public void ShowTextNotification(Color c, string text, TimeSpan time)
        {
            TextNotification notification = new TextNotification();
            notification.DisplayedTime = TimeSpan.Zero;
            notification.Timeout = time;
            notification.FadeTime = new TimeSpan((long)(notification.Timeout.Ticks * 0.1));
            notification.Color = c;
            notification.Text = text;

            notifications.Add(notification);
        }