Example #1
0
        private void btnAddMenu_Click(object sender, EventArgs e)
        {
            AddMenu      addMenu = new AddMenu();
            DialogResult dr      = addMenu.ShowDialog();

            if (dr == DialogResult.OK)
            {
                this.LoadData();
            }
        }
Example #2
0
        private void btnEditMenu_Click(object sender, EventArgs e)
        {
            DAL.Menu menu = (DAL.Menu) this.tabControl.SelectedTab.Tag;

            AddMenu      addMenu = new AddMenu(menu);
            DialogResult dr      = addMenu.ShowDialog();

            if (dr == DialogResult.OK)
            {
                this.LoadData();
            }
        }