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