コード例 #1
0
        private void ctlFileInsertUser_Click(object sender, EventArgs e)
        {
            UserForm newUserForm = new UserForm();

            if (newUserForm.ShowDialog(this) == DialogResult.OK)
            {
                userService.CreateNewUser
                (
                    newUserForm.FirstName,
                    newUserForm.LastName,
                    newUserForm.BirthDay
                );
            }
            UpdateUserDataGridView();
        }