Exemplo n.º 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();
        }
Exemplo n.º 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();
        }
Exemplo n.º 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
        }
Exemplo n.º 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);
     }
 }