Example #1
0
        private void settingsClick(object sender, EventArgs e)
        {
            this.Visible = false;
            var settings = new Settings();

            settings.FormClosed += (s, ea) =>
            {
                StyleApplier.Reload();
                StyleApplier.ApplyColors(this);
                StyleApplier.ApplyName(this);
                this.Visible = true;
            };
            settings.Show();
        }
Example #2
0
        public QuizWindow(string filePath)
        {
            InitializeComponent();

            controler = new QuizWindowControler(filePath);

            answerAButton.Click += (s, ea) => AnswerButtonClick(0);
            answerBButton.Click += (s, ea) => AnswerButtonClick(1);
            answerCButton.Click += (s, ea) => AnswerButtonClick(2);
            answerDButton.Click += (s, ea) => AnswerButtonClick(3);

            timer          = new Timer();
            timer.Interval = 1000;
            timer.Tick    += AnswerShowEnd;

            StyleApplier.ApplyName(this);
            StyleApplier.ApplyColors(splitContainer);
            StyleApplier.ApplyColors(splitContainer.Panel1);
            StyleApplier.ApplyColors(splitContainer.Panel2);

            LoadQuestion();
        }
Example #3
0
 public Menu()
 {
     InitializeComponent();
     StyleApplier.ApplyName(this);
     StyleApplier.ApplyColors(this);
 }