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(); }
private void btnClear_Click(object sender, EventArgs e) { _menu.Delete_All_Dishes(); LBRefresh(); }