Ejemplo n.º 1
0
        public static ToastFluent MakeText(string text)
        {
            var toast = new ToastFluent(text);

            toast.MakeNewSetting();
            return(toast);
        }
Ejemplo n.º 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);
 }
Ejemplo n.º 3
0
 public void Show()
 {
     try
     {
         var toast = new ToastFluent {
             Text = this.Text, Duration = this.Duration
         };
         toast.Show();
     }
     catch (Exception)
     {
         // ignored
     }
 }