private void btnThemPhieuDangKy_Click(object sender, EventArgs e) { FormPhieuDangKy diaglogPhieuDangKy = new FormPhieuDangKy(); diaglogPhieuDangKy.StartPosition = FormStartPosition.CenterScreen; if (diaglogPhieuDangKy.ShowDialog(this) == DialogResult.Yes) { } else { cbMaPhieuDangKy.DataSource = phieuDangKyBLL.LayDanhSachPhieuDangKy(); } }
private void btnQuanLyPhieuDangKy_Click(object sender, EventArgs e) { if (id != "") { FormPhieuDangKy diaglogPhieuDangKy = new FormPhieuDangKy(Int32.Parse(txtMaDiaOc.Text.ToString())); diaglogPhieuDangKy.StartPosition = FormStartPosition.CenterScreen; if (diaglogPhieuDangKy.ShowDialog(this) == DialogResult.Yes) { } else { // txtSoLuongQuangCao.Text = chiTietQuangCaoBLL.LayDanhSachChiTietQuangCaoTheoMaPhieuDangKy(Int32.Parse(txtMaPhieuDangKy.Text)).Rows.Count.ToString(); } } else { MessageBox.Show("Vui lòng chọn địa ốc muốn quản lý phiếu đăng ký!"); } }