Beispiel #1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (dgvRegisters.SelectedRows.Count != 0)
            {
                var userEntity = new UserEntity();

                var userRegister = new VUserRegister();
                userRegister.User = userEntity.Find((int)dgvRegisters.SelectedRows[0].Cells[0].Value);
                userRegister.ShowDialog();
                btnSearch.PerformClick();
            }
        }
Beispiel #2
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            var userRegister = new VUserRegister();

            userRegister.ShowDialog();
        }