示例#1
0
        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();
        }
示例#2
0
        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();
        }