示例#1
0
 /// <summary>
 /// Notifies the user by displaying a toast in the bottom right corner
 /// </summary>
 /// <param name="e">Contains the channel, user, etc. of the important message</param>
 public void Notify(MessageFilterEventArgs e)
 {
     Window x = screen.GetView() as Window;
       var ntvm = new NotificationToastViewModel(e, x);
       x.Dispatcher.Invoke(DispatcherPriority.Background, new ThreadStart(delegate
       {
     this.windowManager.ShowWindow(ntvm);
       }));
 }
示例#2
0
        /// <summary>
        /// Notifies the user by displaying a toast in the bottom right corner
        /// </summary>
        /// <param name="e">Contains the channel, user, etc. of the important message</param>
        public void Notify(MessageFilterEventArgs e)
        {
            Window x    = screen.GetView() as Window;
            var    ntvm = new NotificationToastViewModel(e, x);

            x.Dispatcher.Invoke(DispatcherPriority.Background, new ThreadStart(delegate
            {
                this.windowManager.ShowWindow(ntvm);
            }));
        }