private void btnRemoveMenu_Click(object sender, EventArgs e) { //Data.Menu.Items.Remove((Data.Menu)lbMenus.SelectedItem); Data.Menu selectedMenu = ((Data.Menu)lbMenus.SelectedItem); selectedMenu.Delete_All_Dishes(); selectedMenu.Delete(); LBMenusRefresh(); }
public FormMenu(Data.Menu menu) { InitializeComponent(); _menu = menu; if (_menu != null) { IsExist = true; tbMenuName.Text = _menu.Name; } else { _menu = new Data.Menu(); } }
public FormDishInMenu(Data.Menu menu) { InitializeComponent(); _menu = menu; }