Exemple #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();
        }
        private void backToMenuBtn_Click(object sender, EventArgs e)
        {
            this.Hide();
            menuWindow menu = new menuWindow(new Coordinate(this.Left, this.Top), this.clientName);

            menu.ShowDialog();
        }
Exemple #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
        }
Exemple #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);
     }
 }