public LoginForm() { InitializeComponent(); context = ContextProvider.GetApplicationContext(); loginValidator = new LoginModelValidator(); }
public RegistrationModelValidator() { context = ContextProvider.GetApplicationContext(); customValidator = new CustomValidator <RegistrationModel>(); SetDefaultRules(); }
public RegisterForm() { InitializeComponent(); mapper = AutoMapperProvider.GetIMapper(); context = ContextProvider.GetApplicationContext(); registrationValidator = new RegistrationModelValidator(); }
public TimeResultForm(Guid testResultId) { mapper = AutoMapperProvider.GetIMapper(); context = ContextProvider.GetApplicationContext(); InitializeComponent(); SetFields(testResultId); }
public QuestionsForm(Guid testId, int stepNumber) { InitializeComponent(); context = ContextProvider.GetApplicationContext(); userProgress = UserProgressProvider.GetInstance(); GetTestInfo(testId, stepNumber); }
public ManageUsersForm(ManageUsersFormType formType) { InitializeComponent(); context = ContextProvider.GetApplicationContext(); this.formType = formType; ChangeFormType(formType); }
public UserResultsForm(Guid userId) { InitializeComponent(); mapper = AutoMapperProvider.GetIMapper(); context = ContextProvider.GetApplicationContext(); FillUserResultsGrid(userId); }
public AllTestForm() { InitializeComponent(); mapper = AutoMapperProvider.GetIMapper(); context = ContextProvider.GetApplicationContext(); SetItemsToTypeComboBox(); SetItemsToTopicComboBox(); }
public ResultsForm() { InitializeComponent(); StartPosition = FormStartPosition.CenterScreen; mapper = AutoMapperProvider.GetIMapper(); context = ContextProvider.GetApplicationContext(); FillUserResultsGrid(string.Empty); }
public NewTestForm() { InitializeComponent(); StartPosition = FormStartPosition.CenterScreen; mapper = AutoMapperProvider.GetIMapper(); context = ContextProvider.GetApplicationContext(); newTestModelValidator = new NewTestModelValidator(); SetItemsToTypeComboBox(); SetItemsToTopicComboBox(); }
public UserMainForm(ApplicationUser user) { InitializeComponent(); context = ContextProvider.GetApplicationContext(); this.user = user; TestTopicsComboBox.Visible = false; TestNamesComboBox.Visible = false; StartTestButton.Enabled = false; SetItemsToTypeComboBox(); }
static void Main() { try { ContextProvider.GetApplicationContext(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new LoginForm()); } finally { ContextProvider.Dispose(); } }
public QwestForm(Guid testId, int stepNumber, int numberOfSteps) { InitializeComponent(); StartPosition = FormStartPosition.CenterScreen; mapper = AutoMapperProvider.GetIMapper(); context = ContextProvider.GetApplicationContext(); this.testId = testId; this.Text = string.Format("Question #{0}/{1}", stepNumber, numberOfSteps); if (stepNumber == numberOfSteps) { ContinueButton.Text = "End"; } quizModelValidator = new QuizModelValidator(); }