private void listMealsBtn_Click(object sender, EventArgs e) { var frm = new ListMealsGuestForm(resm.RestaurantID); frm.Location = this.Location; frm.StartPosition = FormStartPosition.Manual; frm.FormClosing += delegate { this.Show(); }; frm.Show(); this.Hide(); }
public MealItemGuest(MealModel mm, ListMealsGuestForm lmf) { InitializeComponent(); mealm = mm; Lmf = lmf; nameL.Text = mm.MealName; priceL.Text = mm.MealPrice.ToString(); sourL.Text = mm.MealSourTaste.ToString(); saltL.Text = mm.MealSaltTaste.ToString(); spicyL.Text = mm.MealSpicyTaste.ToString(); bitterL.Text = mm.MealBitterTaste.ToString(); sweetL.Text = mm.MealSweetTaste.ToString(); }