Example #1
0
        private void đánhDấuĐãGiaoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                string Enable = "0";
                string id;
               
                    id = cbLoai.SelectedValue.ToString();
                    _MySQL.UpdateDanhMuc("dmloaiyeucau",id,0,false);    
                    f_LoadListLoai();
           }catch{}

                
        }
Example #2
0
 private void toolSave_Click(object sender, EventArgs e)
 {
     try
     {
         controlToolStrip("save");
         string Enable = cbEnable.SelectedIndex.ToString();
         string id;
         if (flagIsNew == true)
         {
             id           = _MySQLCQLTheBHYT.getID(_tableName);
             txtMaBN.Text = id;
             _MySQLCQLTheBHYT.InsertDanhMuc(_tableName, id, txtTen.Text, Enable);
         }
         else
         {
             id = txtMaBN.Text;
             _MySQLCQLTheBHYT.UpdateDanhMuc(_tableName, id, txtTen.Text, Enable);
         }
         f_loadDanhSach();
     }
     catch { }
 }