Beispiel #1
0
        private void btAddUser_Click(object sender, EventArgs e)
        {
            var userEditor = new UserEditor();

            userEditor.Initialize(MODE_ADD, _dataInterface);
            if (userEditor.ShowDialog() == DialogResult.OK)
            {
                var user = new User();
                userEditor.ReturnValues(ref user);
                _dataInterface.CreateUser(user);
                _formUtils.RefreshUsers(dg_Users);
            }
        }