Esempio n. 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;
 }
Esempio n. 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 + " %";
        }
Esempio n. 3
0
 public AddNewQuestionForm(QuestionService questionService, UserPanelForm userPanelForm)
 {
     InitializeComponent();
     this.questionService = questionService;
     this.userPanelForm   = userPanelForm;
 }
Esempio n. 4
0
 private void UserPanelPictureBoxStart_Click(object sender, EventArgs e)
 {
     this.Visible = false;
     userPanel    = new UserPanelForm(this);
     userPanel.ShowDialog();
 }