private void BtnLuu_Click(object sender, EventArgs e) { try { BLAccount blacc = new BLAccount(); blacc.CreateAcc(this.txtUsername.Text, this.txtPassword.Text, Convert.ToString(cbChucvu.SelectedIndex + 1), this.lblID.Text, pathPicture, err); LoadData(); this.dgvTaiKhoan.Enabled = true; MessageBox.Show("Đã thêm xong!"); } catch (SqlException) { MessageBox.Show("Không thêm được. Lỗi rồi!"); } }