예제 #1
0
        private void btnAddUser_Click(object sender, EventArgs e)
        {
            AddUserForm addUserForm = new AddUserForm();

            addUserForm.SetParent(this);
            addUserForm.ShowDialog();
        }
예제 #2
0
        private void btnAddUser_Click(object sender, EventArgs e)
        {
            AddUserForm addUserForm = new AddUserForm();

            if (addUserForm.ShowDialog() == DialogResult.OK)
            {
                addUserForm.SetParent(this);
                addUserForm.ShowDialog();
            }
            updateDataGridView();
        }