public void GameOver()
 {
     RegisterButton.Enabled = true;
     StartButton.Enabled    = true;
     QuitGameButton.Enabled = false;
     TimeBox.ReadOnly       = false;
     ServerBox.ReadOnly     = false;
     UsernameBox.ReadOnly   = false;
     TimeBox.Focus();
 }
        private void TimeBox_Leave(object sender, EventArgs e)
        {
            int  value  = 0;
            bool parsed = int.TryParse(TimeBox.Text, out value);

            if (!parsed || value < 0)
            {
                MessageBox.Show("Wpisana wartość nie jest liczbą całkowitą, jest mniejsza od zera lub zostawiłeś puste pole!!! POZOSTAW ZERO, ABY NIE UŻYWAĆ PARAMETRU.");
                TimeBox.Focus();
            }
        }
Esempio n. 3
0
 private void RegisteredState()
 {
     RegisterUserButton.Enabled = true;
     JoinGameButton.Enabled     = true;
     QuitGameButton.Enabled     = false;
     PlayerBox.Enabled          = true;
     ServerBox.Enabled          = true;
     TimeBox.Enabled            = true;
     WordBox.Enabled            = false;
     WordBox.Text        = "";
     Waiting.Visible     = false;
     JoinGameButton.Text = "Join Game";
     TimeBox.Focus();
 }