Пример #1
0
        private void nbiKhachHang_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            frmAddCustomer fAddCustomer = new frmAddCustomer();

            AddNhatKy("Thêm", "Khách Hàng");
            fAddCustomer.ShowDialog();
        }
Пример #2
0
        private void barAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var addCus = new frmAddCustomer();

            addCus.ShowDialog();
            treeListKH.ClearNodes();
            LoadKhachHang();
        }
Пример #3
0
        private void rdmThem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var addCus = new frmAddCustomer();

            addCus.ShowDialog();
            AddNhatKy("Thêm");
            LoadKhachHang();
        }
        private void btnAddKhachHang_Click(object sender, EventArgs e)
        {
            var addCus = new frmAddCustomer();

            AddNhatKy("Thêm", "Khách hàng");
            addCus.ShowDialog();
            loadKhachHang();
        }
Пример #5
0
        private void btnCheck_Click(object sender, EventArgs e)
        {
            frmAddCustomer addCustomer = new frmAddCustomer();

            this.Hide();
            addCustomer.ShowDialog();
            this.Show();
        }
Пример #6
0
        private void addToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmAddCustomer adding = new frmAddCustomer();

            if (adding.ShowDialog() == DialogResult.OK)
            {
                adding.Close();
            }
        }
Пример #7
0
        private void btnAddCustomer_Click(object sender, EventArgs e)
        {
            var frmAdd = new frmAddCustomer();
            var result = frmAdd.ShowDialog();

            if (result == DialogResult.Cancel)
            {
                LoadData();
            }
        }