Example #1
0
 private void groupBox_DoubleClcik(object sender, EventArgs e)
 {
     foreach (GroupBox a in listgrpbox)
     {
         a.BackColor = Color.FloralWhite;
     }
     ((GroupBox)sender).BackColor = Color.PapayaWhip;
     foreach (GroupBox a in listgrpbox)
     {
         if (a.BackColor == Color.PapayaWhip)
         {
             DataTable   dt_menu = main.db.getDb("menu where menuid='" + ((Label)(a.Tag)).Text + "'");
             addMenuType addMenu = new addMenuType(dt_menu, main, this);
             addMenu.ShowDialog();
         }
     }
 }
Example #2
0
        private void btn_addMenutype_Click(object sender, EventArgs e)
        {
            addMenuType addMenu = new addMenuType(main, this);

            addMenu.ShowDialog();
        }