/// <summary>
 /// Method is invoked when the viewmodel tells the view: Show another notification to the user.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void TestVM_ShowNotificationMessage(object sender, UserNotification.Events.ShowNotificationEvent e)
 {
     this.SetNextNotificationPosition();
     this.notificationWindow.ShowNotification(new NotificationViewModel
     {
         Title     = e.Title,
         ImageIcon = e.ImageIcon,
         Message   = e.Message
     });
 }
        /// <summary>
        /// Method is invoked when the viewmodel tells the view: Show another notification to the user.
        /// (override this method if you want to use a different viewmodel and custom (re-styled) notification view.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void ViewModel_ShowNotificationMessage(object sender, UserNotification.Events.ShowNotificationEvent e)
        {
            NotificationViewModel vm = new UserNotification.ViewModel.NotificationViewModel
            {
                Title     = e.Title,
                ImageIcon = e.ImageIcon,
                Message   = e.Message
            };

            this.SetNextNotificationPosition(vm);
            this.notificationWindow.ShowNotification(vm);
        }
Beispiel #3
0
 /// <summary>
 /// Method is invoked when the viewmodel tells the view: Show another notification to the user.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ViewModel_ShowNotificationMessage(object sender, UserNotification.Events.ShowNotificationEvent e)
 {
     this.ShowNotification(e.Title, e.Message, true);
 }