private void btnAdd_Click(object sender, EventArgs e)
        {
            this.Hide();
            UCCustomer_Add uc = new UCCustomer_Add(mainform, datagrid);

            mainform.loadUCCustomer_Add();
        }
Ejemplo n.º 2
0
        public void loadUCCustomer_Add()
        {
            _obj = this;
            pnlContainer.Controls.Clear();
            UCCustomer_Add uc = new UCCustomer_Add(this, ucCustomer.GetDataGridView());

            uc.Dock = DockStyle.Fill;
            pnlContainer.Controls.Add(uc);
        }