private void lvMenu_MouseDoubleClick(object sender, MouseEventArgs e) { if (lvMenu.SelectedItems.Count == 1) { AppData.Menu mn = (AppData.Menu)lvMenu.SelectedItems[0].Tag; using (FrmAddMenu frmAddMenu = new FrmAddMenu(mn)) { if (frmAddMenu.ShowDialog(this) == DialogResult.OK) { showMenu(); } } } }
private void btnNewMenu_Click(object sender, EventArgs e) { FrmAddMenu frmAdd = new FrmAddMenu(); if (frmAdd.ShowDialog() == DialogResult.OK) { showMenu(); } }