private bool ToastAlreadyPresent(string message, string title, ToastType type) { return(Toasts.Any(toast => message.Equals(toast.Message) && title.Equals(toast.Title) && type.Equals(toast.State.Options.Type) )); }
public Toast(FoodUnit Unit, ToastType Type, int Count) { this.Name = "Tost"; this.Unit = Unit; this.Type = Type; decimal TypePrice = Type.Equals(ToastType.Kasarli) ? PriceList.KasarliTost : PriceList.KarisikTost; this.UnitPrice = Unit.Equals(FoodUnit.Ceyrek) ? TypePrice / 4 : Unit.Equals(FoodUnit.Yarim) ? TypePrice / 2 : TypePrice; this.Count = Count; }