Esempio n. 1
0
 private void btn_Them_Click(object sender, EventArgs e)
 {
     if (btn_Them.Text == "&Thêm")
     {
         iThem_Luu = 1;
         DK(true);
         XoaKhoangTrang();
         btn_Them.Text        = "&Hủy";
         grp_thongtin.Enabled = true;
     }
     else if (btn_Them.Text == "&Hủy")
     {
         iThem_Luu = 0;
         DK(false);
         DGV_DSLP.Focus();
         DGV_DSLP.Select();
         btn_Them.Text        = "&Thêm";
         grp_thongtin.Enabled = false;
     }
 }
Esempio n. 2
0
 private void Frm_LoaiPhong_Load(object sender, EventArgs e)
 {
     ShowDataLoaiPhong();
     DGV_DSLP.Focus();
     DGV_DSLP.Select();
 }