Beispiel #1
0
        private void loginBtn_Click(object sender, EventArgs e)
        {
            this.Hide();
            menuWindow menu = new menuWindow(new Coordinate(this.Left, this.Top), nameInput.Text);

            menu.ShowDialog();
        }
Beispiel #2
0
        private void backToMenuBtn_Click(object sender, EventArgs e)
        {
            this.Hide();
            menuWindow menu = new menuWindow(new Coordinate(this.Left, this.Top), this.clientName);

            menu.ShowDialog();
        }
Beispiel #3
0
        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
        }
Beispiel #4
0
 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);
     }
 }