private void AddToastPopup(string message)
 {
     this.Dispatcher.Invoke((Delegate)(() =>
     {
         if (this.mToastPopup == null)
         {
             this.mToastPopup = new CustomToastPopupControl((UserControl)this);
         }
         this.mToastPopup.Init((UserControl)this, message, (Brush)null, (Brush)null, HorizontalAlignment.Center, VerticalAlignment.Bottom, new Thickness?(new Thickness(0.0, 0.0, 0.0, 50.0)), 12, new Thickness?(), (Brush)null);
         this.mToastPopup.ShowPopup(1.3);
     }));
 }
Esempio n. 2
0
 protected void AddToastPopup(string message)
 {
     try
     {
         if (this.mToastPopup == null)
         {
             this.mToastPopup = new CustomToastPopupControl((System.Windows.Controls.UserControl) this.View);
         }
         this.mToastPopup.Init((System.Windows.Controls.UserControl) this.View, message, (Brush)null, (Brush)null, System.Windows.HorizontalAlignment.Center, VerticalAlignment.Bottom, new Thickness?(), 12, new Thickness?(), (Brush)null);
         this.mToastPopup.ShowPopup(1.3);
     }
     catch (Exception ex)
     {
         Logger.Error("Exception in showing toast popup: " + ex.ToString());
     }
 }
Esempio n. 3
0
 private void AddToastPopup(string message)
 {
     try
     {
         if (this.mToastPopup == null)
         {
             this.mToastPopup = new CustomToastPopupControl((UserControl)this);
         }
         this.mToastPopup.Init((Window)this.ParentWindow, message, (Brush)null, (Brush)null, HorizontalAlignment.Center, VerticalAlignment.Bottom, new Thickness?(), 12, new Thickness?(), (Brush)null, false, false);
         this.mToastPopup.ShowPopup(1.3);
     }
     catch (Exception ex)
     {
         Logger.Error("Exception in showing toast popup: " + ex.ToString());
     }
 }