Пример #1
0
 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();
 }
Пример #2
0
 private void btnClear_Click(object sender, EventArgs e)
 {
     _menu.Delete_All_Dishes();
     LBRefresh();
 }