예제 #1
0
        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()));
            }
        }
예제 #2
0
 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!");
     }
 }