/// <summary>
 /// Game start
 /// </summary>
 public static void StartGame()
 {
     userName.Text    = "";
     ScoresVisible    = false;
     buttonPause.Text = "Pause";
     GameField.Reset();
 }
 /// <summary>
 /// Restart
 /// </summary>
 private static void Restart()
 {
     if (GameField.GameOver)
     {
         AddScore();
     }
     GameField.Reset();
 }
 /// <summary>
 /// High scores
 /// </summary>
 private static void ShowScores()
 {
     ScoresVisible = true;
     PauseVisible  = false;
     if (GameField.GameOver)
     {
         AddScore();
     }
     GameField.Reset();
 }
 /// <summary>
 /// Initializing game objects
 /// </summary>
 public static void Create()
 {
     GameField.Reset();
     GameField.Game = false;
     ScoresVisible  = true;
     Scores         = new List <KeyValuePair <string, int> >();
     LoadScores();
     buttonPlay    = new Button("Play", StartGame);
     buttonExit    = new Button("Exit", Exit);
     buttonPause   = new Button("Pause", Pause);
     buttonRestart = new Button("⟲", Restart);
     buttonScores  = new Button("Menu", ShowScores);
     panelGameOver = new Panel("Game Over");
     panelPause    = new Panel("Pause");
     userName      = new Input();
     Score         = 0;
 }