예제 #1
0
        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();
                    }
                }
            }
        }
예제 #2
0
        private void btnNewMenu_Click(object sender, EventArgs e) {
            FrmAddMenu frmAdd = new FrmAddMenu();

            if (frmAdd.ShowDialog() == DialogResult.OK) {
                showMenu();
            }
        }