public static void Toast(
     string message = "Something terrible may have just happened and you are being notified of it.",
     ToasterPosition position = ToasterPosition.PrimaryScreenBottomRight, ToasterAnimation animation = ToasterAnimation.SlideInFromRight,
     double margin = 10.0)
 {
     var err = new ErrorToaster(message, position, animation, margin);
     err.Show();
 }
 public static void Toast(
    netoaster.Message _myMes1, netoaster.Message _myMes2, netoaster.Message _myMes3, string messageEmail1, string messageAutor1 = "", string messageTheme1 = "", string messageEmail2 = "", string messageAutor2 = "", string messageTheme2 = "", string messageEmail3 = "", string messageAutor3 = "", string messageTheme3 = "", int timeActive = 3, int countNewMessage = 0, ToasterPosition position = ToasterPosition.PrimaryScreenBottomRight, ToasterAnimation animation = ToasterAnimation.SlideInFromRight,
     double margin = 10.0)
 {
     var err = new ErrorToaster(_myMes1, _myMes2, _myMes3, messageEmail1, messageAutor1, messageTheme1, messageEmail2, messageAutor2, messageTheme2, messageEmail3, messageAutor3, messageTheme3, timeActive, countNewMessage, position, animation, margin);
     err.Show();
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
         switch (connectionId)
         {
         case 1:
     this.window = ((ErrorToaster)(target));
     return;
         case 2:
     this.ErrorToasterInstance = ((System.Windows.Controls.Grid)(target));
     return;
         case 3:
     this.bord = ((System.Windows.Controls.Border)(target));
     return;
         case 4:
     this.avatar1 = ((System.Windows.Shapes.Ellipse)(target));
     return;
         case 5:
     this.autorletter1 = ((System.Windows.Documents.Run)(target));
     return;
         case 6:
     this.autorname1 = ((System.Windows.Documents.Run)(target));
     return;
         case 7:
     this.themetext1 = ((System.Windows.Documents.Run)(target));
     return;
         case 8:
     this.emailtext = ((System.Windows.Documents.Run)(target));
     return;
         case 9:
     this.avatar2 = ((System.Windows.Shapes.Ellipse)(target));
     return;
         case 10:
     this.autorletter2 = ((System.Windows.Documents.Run)(target));
     return;
         case 11:
     this.autorname2 = ((System.Windows.Documents.Run)(target));
     return;
         case 12:
     this.themetext2 = ((System.Windows.Documents.Run)(target));
     return;
         case 13:
     this.close = ((System.Windows.Controls.Button)(target));
     
     #line 25 "..\..\MoreThreeMessage.xaml"
     this.close.Click += new System.Windows.RoutedEventHandler(this.close_Click);
     
     #line default
     #line hidden
     return;
         case 14:
     this.emailtext1 = ((System.Windows.Documents.Run)(target));
     return;
         case 15:
     this.emailtext2 = ((System.Windows.Documents.Run)(target));
     return;
         case 16:
     this.rectang = ((System.Windows.Shapes.Rectangle)(target));
     return;
         case 17:
     this.avatar3 = ((System.Windows.Shapes.Ellipse)(target));
     return;
         case 18:
     this.autorletter3 = ((System.Windows.Documents.Run)(target));
     return;
         case 19:
     this.autorname3 = ((System.Windows.Documents.Run)(target));
     return;
         case 20:
     this.themetext3 = ((System.Windows.Documents.Run)(target));
     return;
         case 21:
     this.emailtext3 = ((System.Windows.Documents.Run)(target));
     return;
         case 22:
     this.fullinfo = ((System.Windows.Controls.Button)(target));
     
     #line 35 "..\..\MoreThreeMessage.xaml"
     this.fullinfo.Click += new System.Windows.RoutedEventHandler(this.fullinfo_Click);
     
     #line default
     #line hidden
     return;
         }
     this._contentLoaded = true;
 }
Example #4
0
 private void showerror(object sender, RoutedEventArgs e)
 {
     ErrorToaster.Toast(this, TitleText.Text, MessageText.Text, position: (ToasterPosition)selectbox.SelectedItem, animation: (ToasterAnimation)aniselectbox.SelectedItem, margin: 20.0);
 }