Exemplo n.º 1
0
        private void kháchHàngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormKhachHang formKhachHang = new FormKhachHang();

            formKhachHang.TopLevel        = false;
            formKhachHang.Visible         = true;
            formKhachHang.FormBorderStyle = FormBorderStyle.None;
            formKhachHang.Dock            = DockStyle.Fill;
            tabCtlChinh.TabPages.Add("Khách hàng");
            tabCtlChinh.TabPages[tabCtlChinh.TabPages.Count - 1].Controls.Add(formKhachHang);
            tabCtlChinh.SelectedIndex = tabCtlChinh.TabPages.Count - 1;
        }
Exemplo n.º 2
0
        private void btnThemKhachHang_Click(object sender, EventArgs e)
        {
            FormKhachHang diaglogKhachHang = new FormKhachHang();

            diaglogKhachHang.StartPosition = FormStartPosition.CenterScreen;
            if (diaglogKhachHang.ShowDialog(this) == DialogResult.Yes)
            {
            }
            else
            {
                cbKhachHang.DataSource = khachHangBLL.LayDanhSachKhachHang();
            }
        }