public void Show(string Message, ToastType type) { switch (type) { case ToastType.Default: PolishedToast.Create(Android.App.Application.Context, Message).Show(); break; case ToastType.Error: PolishedToast.Error(Android.App.Application.Context, Message).Show(); break; case ToastType.Info: PolishedToast.Info(Android.App.Application.Context, Message).Show(); break; case ToastType.Success: PolishedToast.Success(Android.App.Application.Context, Message).Show(); break; case ToastType.Warning: PolishedToast.Warning(Android.App.Application.Context, Message).Show(); break; } }
private void ButtonDefault_Click(object sender, System.EventArgs e) { PolishedToast.Create(this, "Default").Show(); }