Beispiel #1
0
 public void ShowSimple(string title, Toast kind)
 {
     OnShowToast?.Invoke(
         this,
         new ToastContent(title, "")
     {
         Kind = kind
     }
         );
 }
Beispiel #2
0
 public void ShowNormal(string title, string content, int duration = 3500)
 {
     OnShowToast?.Invoke(
         this,
         new ToastContent(title, content)
     {
         Duration = duration
     }
         );
 }
Beispiel #3
0
 public void ShowWarning(string title, string content, int duration = 3500)
 {
     OnShowToast?.Invoke(
         this,
         new ToastContent(title, content)
     {
         Kind     = Toast.Warning,
         Duration = duration
     }
         );
 }
Beispiel #4
0
 public void ShowSuccess(string title, string content, int duration = 3500)
 {
     OnShowToast?.Invoke(
         this,
         new ToastContent
     {
         Title    = title,
         Content  = content,
         Kind     = Toast.Success,
         Duration = duration
     }
         );
 }
Beispiel #5
0
 public void ShowCustom(ToastContent content)
 {
     OnShowToast?.Invoke(this, content);
 }