private void phiếuĐăngKýToolStripMenuItem_Click(object sender, EventArgs e) { FormPhieuDangKy formPhieuDangKy = new FormPhieuDangKy(); formPhieuDangKy.TopLevel = false; formPhieuDangKy.Visible = true; formPhieuDangKy.FormBorderStyle = FormBorderStyle.None; formPhieuDangKy.Dock = DockStyle.Fill; tabCtlChinh.TabPages.Add("Phiếu đăng ký"); tabCtlChinh.TabPages[tabCtlChinh.TabPages.Count - 1].Controls.Add(formPhieuDangKy); tabCtlChinh.SelectedIndex = tabCtlChinh.TabPages.Count - 1; }
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ý!"); } }