private void loginBtn_Click(object sender, EventArgs e) { this.Hide(); menuWindow menu = new menuWindow(new Coordinate(this.Left, this.Top), nameInput.Text); menu.ShowDialog(); }
private void backToMenuBtn_Click(object sender, EventArgs e) { this.Hide(); menuWindow menu = new menuWindow(new Coordinate(this.Left, this.Top), this.clientName); menu.ShowDialog(); }
private void exitBtn_Click(object sender, EventArgs e) { this.Hide(); // hide this window menuWindow menu = new menuWindow(new Coordinate(this.Left, this.Top), this.clientName); // build new window menu.ShowDialog(); // show the next window, in case the menu window }
private void ans4_Click(object sender, EventArgs e) { if (finished) { this.Hide(); menuWindow menu = new menuWindow(new Coordinate(this.Left, this.Top), this.clientName); menu.ShowDialog(); } else if (started) { timeMeasure.Stop(); answered(questions[questionNumber], 4, timeMeasure.ElapsedMilliseconds); } }