}//end method /// <summary> /// On edit dinner button click, opens new MealForm which displays /// dinner list and allows adding new foods or editing existing ones. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void EditDinnerBtn_Click(object sender, EventArgs e) { var form = new MealForm(tracker, Meal.DINNER); form.StartPosition = FormStartPosition.CenterParent; form.Text = "Dinner"; form.ShowDialog(); UpdateProgress(); }//end method
}//end method /// <summary> /// On edit breakfast button click, opens new MealForm which displays /// breakfast list and allows adding new foods or editing existing ones. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void EditBreakfastBtn_Click(object sender, EventArgs e) { var form = new MealForm(tracker, Meal.BREAKFAST); form.StartPosition = FormStartPosition.CenterParent; form.Text = "Breakfast"; form.ShowDialog(); UpdateProgress(); }//end method