Пример #1
0
        private void EditRestaurantButton_Click(object sender, EventArgs e)
        {
            Hide();
            var ERM = new EditRestaurantMenu(AdminId, RestaurantId, false, true);

            ERM.ShowDialog();
        }
        private void button2_Click(object sender, EventArgs e) //ChangeRestaurantDetails
        {
            Hide();
            var ERM = new EditRestaurantMenu(AdminId, RestaurantId, false, false);

            ERM.ShowDialog();
        }
        private void AddRestaurantButton_Click(object sender, EventArgs e)
        {
            if (CorrectNameFormat)
            {
                //add code to add correct Restaurantid ---list.length()+1 etc...

                Hide();
                var ERM = new EditRestaurantMenu(UserId, RestaurantId, true, true, RestaurantNameTextbox.Text);
                ERM.ShowDialog();
            }
        }