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(); }
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(); }
public Menu() { InitializeComponent(); StyleApplier.ApplyName(this); StyleApplier.ApplyColors(this); }