Пример #1
0
 public RemoveQuestionForm(QuestionService questionService, UserPanelForm userPanelForm)
 {
     InitializeComponent();
     this.questionService             = questionService;
     this.userPanelForm               = userPanelForm;
     questionsDataGridView.DataSource = questionService.ShowAllQuestions();
     questionsDataGridView.Columns["IsDeleted"].Visible       = false;
     questionsDataGridView.Columns["CreatedDateTime"].Visible = false;
     questionsDataGridView.Columns["DeletedDateTime"].Visible = false;
 }
Пример #2
0
        public QuizForm(QuestionService questionService, UserPanelForm userPanelForm)
        {
            InitializeComponent();
            this.questionService = questionService;
            this.userPanelForm   = userPanelForm;

            answerButtons = new List <Button>();
            answerButtons.Add(answerButton1);
            answerButtons.Add(answerButton2);
            answerButtons.Add(answerButton3);
            answerButtons.Add(answerButton4);

            loadQuestionView = new LoadQuestionVM(questionLabel, answerButtons);
            actualIdQuestion = questionService.LoadQuestion(loadQuestionView);
            answerTimer.Start();
            completedTasksProgressBar.Value = questionService.UpdateProgress();
            progressPercentLabel.Text       = completedTasksProgressBar.Value + " %";
        }
Пример #3
0
 public AddNewQuestionForm(QuestionService questionService, UserPanelForm userPanelForm)
 {
     InitializeComponent();
     this.questionService = questionService;
     this.userPanelForm   = userPanelForm;
 }
Пример #4
0
 private void UserPanelPictureBoxStart_Click(object sender, EventArgs e)
 {
     this.Visible = false;
     userPanel    = new UserPanelForm(this);
     userPanel.ShowDialog();
 }