public static void Toast(string messageAutor = "", string messageTheme="[Без темы]", ToasterPosition position = ToasterPosition.PrimaryScreenTopRight, ToasterAnimation animation = ToasterAnimation.SlideInFromRight, double margin = 10.0) { var err = new SuccessToaster(messageAutor, messageTheme, position, animation, margin); err.Show(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.window = ((SuccessToaster)(target)); return; case 2: this.SuccessToasterInstance = ((System.Windows.Controls.Grid)(target)); return; case 3: this.avatar = ((System.Windows.Shapes.Ellipse)(target)); return; case 4: this.autorletter = ((System.Windows.Documents.Run)(target)); return; case 5: this.autorname = ((System.Windows.Documents.Run)(target)); return; case 6: this.themetext = ((System.Windows.Documents.Run)(target)); return; case 7: this.emailtext = ((System.Windows.Documents.Run)(target)); return; case 8: this.close = ((System.Windows.Controls.Button)(target)); #line 25 "..\..\Onemessage.xaml" this.close.Click += new System.Windows.RoutedEventHandler(this.close_Click); #line default #line hidden return; } this._contentLoaded = true; }
internal static void Success(string title, string message = "", Window owner = null) { SuccessToaster.Toast(owner, title: title, message: message, position: Position); }
private void showsuccess(object sender, RoutedEventArgs e) { SuccessToaster.Toast(this, TitleText.Text, MessageText.Text, position: (ToasterPosition)selectbox.SelectedItem, animation: (ToasterAnimation)aniselectbox.SelectedItem, margin: 20.0); }