コード例 #1
0
 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)
                       ));
 }
コード例 #2
0
ファイル: Toast.cs プロジェクト: ddemirci/KahvApp
        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;
        }