public Register()
        {
            InitializeComponent();
            _eloquentStudentRepository  = new EloquentStudentRepository();
            _eloquentSecurityRepository = new EloquentSecurityRepository();

            txtPassword.UseSystemPasswordChar = isPassword;
        }
        public ChangeSecurity(int userId)
        {
            InitializeComponent();
            _eloquentStudentRepository  = new EloquentStudentRepository();
            _eloquentSecurityRepository = new EloquentSecurityRepository();

            UserId = userId;

            _student  = _eloquentStudentRepository.GetStudentDetails(UserId);
            _security = _eloquentSecurityRepository.GetStudentSecurity(UserId);

            txtQuestion.Text = _security.Question;
            txtAnsw.Text     = _security.Answer;
        }
 public ResetPassword()
 {
     InitializeComponent();
     _eloquentStudentRepository  = new EloquentStudentRepository();
     _eloquentSecurityRepository = new EloquentSecurityRepository();
 }