private void btnThemDiaOc_Click(object sender, EventArgs e) { FormDiaOc diaglogDiaOc = new FormDiaOc(); diaglogDiaOc.StartPosition = FormStartPosition.CenterScreen; if (diaglogDiaOc.ShowDialog(this) == DialogResult.Yes) { } else { cbDiaOc.DataSource = diaOcBLL.LayDanhSachDiaOcTheoMaKH(Int32.Parse(cbKhachHang.SelectedValue.ToString())); } }
private void btnQuanLyDiaOc_Click(object sender, EventArgs e) { if (id != "") { FormDiaOc diaglogDiaOc = new FormDiaOc(Int32.Parse(txtMaKH.Text.ToString())); diaglogDiaOc.StartPosition = FormStartPosition.CenterScreen; if (diaglogDiaOc.ShowDialog(this) == DialogResult.Yes) { } else { // txtSoLuongQuangCao.Text = chiTietQuangCaoBLL.LayDanhSachChiTietQuangCaoTheoMaPhieuDangKy(Int32.Parse(txtMaPhieuDangKy.Text)).Rows.Count.ToString(); } } else { MessageBox.Show("Vui lòng chọn Khách hàng muốn thêm địa ốc!"); } }