private void loạiĐịaỐcToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormLoaiDiaOc formLoaiDiaOc = new FormLoaiDiaOc();

            formLoaiDiaOc.TopLevel        = false;
            formLoaiDiaOc.Visible         = true;
            formLoaiDiaOc.FormBorderStyle = FormBorderStyle.None;
            formLoaiDiaOc.Dock            = DockStyle.Fill;
            tabCtlChinh.TabPages.Add("Loại địa ốc");
            tabCtlChinh.TabPages[tabCtlChinh.TabPages.Count - 1].Controls.Add(formLoaiDiaOc);
            tabCtlChinh.SelectedIndex = tabCtlChinh.TabPages.Count - 1;
        }
Exemple #2
0
        private void btnThemLoaiDiaOc_Click(object sender, EventArgs e)
        {
            FormLoaiDiaOc formLoaiDiaOc = new FormLoaiDiaOc();

            formLoaiDiaOc.StartPosition = FormStartPosition.CenterScreen;
            if (formLoaiDiaOc.ShowDialog(this) == DialogResult.Yes)
            {
            }
            else
            {
                cbLoaiDiaOc.DataSource = loaiDiaOcBLL.LayDanhSachLoaiDiaOc();
            }
        }