Ejemplo n.º 1
0
        public QuizLevelForm()
        {
            this.WindowState = FormWindowState.Maximized;
            InitializeComponent();

            this._quizLevelService = new QuizLevelService(new QuizLevelRepository <QuizCompetitionDbContext>());
        }
Ejemplo n.º 2
0
        public AddQuestionForm(int id)
        {
            quesionId = id;

            InitializeComponent();

            this._quizQuestionService = new QuizQuestionService(new QuizQuestionRepository <QuizCompetitionDbContext>());
            this._quizLevelService    = new QuizLevelService(new QuizLevelRepository <QuizCompetitionDbContext>());
            this._quizRoundService    = new QuizRoundService(new QuizRoundRepository <QuizCompetitionDbContext>());
        }
Ejemplo n.º 3
0
        public ChooseLevelForm()
        {
            this.WindowState = FormWindowState.Maximized;
            InitializeComponent();

            this._quizLevelService         = new QuizLevelService(new QuizLevelRepository <QuizCompetitionDbContext>());
            this._quizRoundService         = new QuizRoundService(new QuizRoundRepository <QuizCompetitionDbContext>());
            this._attamtedQuestionsService = new AttamtedQuestionsService(new AttamtedQuestionsRepository <QuizCompetitionDbContext>());
            this._quizTeamService          = new QuizTeamService(new QuizTeamRepository <QuizCompetitionDbContext>());

            FillRounds();

            FillLevels();

            Program.AttemtNoOfQuestion = 0;
        }
Ejemplo n.º 4
0
 public QuizLevelList()
 {
     InitializeComponent();
     this._quizLevelService = new QuizLevelService(new QuizLevelRepository <QuizCompetitionDbContext>());
 }