Beispiel #1
0
        public static ToastFluent MakeText(string text)
        {
            var toast = new ToastFluent(text);

            toast.MakeNewSetting();
            return(toast);
        }
Beispiel #2
0
 public void Show()
 {
     ToastFluent.MakeText(this.Text, this.Duration)
     .SetBgAlpha(new nfloat(this.BackgroundColor.A))
     .SetBgRed(new nfloat(this.BackgroundColor.R))
     .SetBgGreen(new nfloat(this.BackgroundColor.G))
     .SetBgBlue(new nfloat(this.BackgroundColor.B))
     .SetType(this.Type)
     .SetGravity(this.Gravity)
     .Show(ToastType.Info);
 }
Beispiel #3
0
 public void Show()
 {
     try
     {
         var toast = new ToastFluent {
             Text = this.Text, Duration = this.Duration
         };
         toast.Show();
     }
     catch (Exception)
     {
         // ignored
     }
 }