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

            mainform.loadUCEmployeeAdd();
        }
예제 #2
0
        public void loadUCEmployeeAdd()
        {
            _obj = this;
            pnlContainer.Controls.Clear();
            UCEmployee_Add uc = new UCEmployee_Add(this, ucEmployee.GetDataGridView());

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