Ejemplo n.º 1
0
 public void ShowSimple(string title, Toast kind)
 {
     OnShowToast?.Invoke(
         this,
         new ToastContent(title, "")
     {
         Kind = kind
     }
         );
 }
Ejemplo n.º 2
0
 public void ShowNormal(string title, string content, int duration = 3500)
 {
     OnShowToast?.Invoke(
         this,
         new ToastContent(title, content)
     {
         Duration = duration
     }
         );
 }
Ejemplo n.º 3
0
 public void ShowWarning(string title, string content, int duration = 3500)
 {
     OnShowToast?.Invoke(
         this,
         new ToastContent(title, content)
     {
         Kind     = Toast.Warning,
         Duration = duration
     }
         );
 }
Ejemplo n.º 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
     }
         );
 }
Ejemplo n.º 5
0
 public void ShowCustom(ToastContent content)
 {
     OnShowToast?.Invoke(this, content);
 }