private async void saveMealInfo(string name, int rate, int type, string comment, string createDate)
        {
            if (meal != null)
            {
                meal.Name       = name;
                meal.Rate       = rate;
                meal.Type       = type;
                meal.Comments   = comment;
                meal.CreateDate = DateTime.ParseExact(createDate, "yyyy-MM-dd", CultureInfo.InvariantCulture);;
                if (uri != null)
                {
                    meal.ImageName = saveImage(null);
                }
            }
            else
            {
                meal = new Meal(name, rate, type, saveImage(null), comment, createDate);
            }

            string message = await insertUpdateData(meal);

            if ("Success" == message)
            {
                Toast.MakeText(this.Context, "Saved successfully!", ToastLength.Short).Show();
                MyUtil.GoHome(this);
            }
            else
            {
                Toast.MakeText(this.Context, message, ToastLength.Short).Show();
            }
        }
 public void cancelBtn_OnClick(object sender, EventArgs e)
 {
     if (fromList)
     {
         fromList = false;
         MyUtil.GoList(this);
     }
     else
     {
         MyUtil.GoHome(this);
     }
 }