/// <summary>
        /// Обработчик события нажатия на кнопку с размером поля
        /// </summary>
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            int fieldSize;

            if (!int.TryParse(((Button)sender).Content.ToString().Split('x')[0],
                              out fieldSize))
            {
                fieldSize = 10;
            }

            DeskOfCells cells = FieldGenerator.Generator(fieldSize);

            cells.Difficulty = difficulty;

            GameWindow.GameWindow gameWindow = new
                                               GameWindow.GameWindow(cells, true);
            gameWindow.Show();
            Window.GetWindow(this).Close();
        }