コード例 #1
0
 private void btSua_Click(object sender, EventArgs e)
 {
     if (statuss != Status.isEdit)
     {
         statuss = Status.isEdit;
         status  = Status.isEdit;
         MessageBox.Show("Bạn vừa thoát chế độ sửa");
     }
     else
     {
         Phong p = new Phong();
         try
         {
             p.H_muc = Int32.Parse(txtHanMuc.Text);
         }
         catch
         {
             MessageBox.Show("Hạn mức không hợp lệ");
         }
         p.T_phong = txtPhong.Text;
         quanLyPhong.SuaPhong(p, row);
     }
 }