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; }
private void ResetPassword_Load(object sender, EventArgs e) { _security = _eloquentSecurityRepository.GetStudentSecurity(UserId); txtQuestion.Text = _security.Question; //txtAnsw.Text = _security.Answer; }