static void Main(string[] args)
        {
            System.Threading.Thread.Sleep(500);
            LoadLogo loadLogo = new LoadLogo();

            loadLogo.LoadLogoNow();
            LoadControlButtonInfo loadControlButtons = new LoadControlButtonInfo();

            loadControlButtons.LoadInfo();

            ConsoleKeyInfo keyinfo;

            do
            {
                keyinfo = Console.ReadKey();
                //Console.WriteLine(keyinfo.Key + " was pressed");
                if (keyinfo.Key == ConsoleKey.I)
                {
                    Console.Clear();
                    AboutGame aboutGame = new AboutGame();
                    aboutGame.InfoGame();
                }
                if (keyinfo.Key == ConsoleKey.N)
                {
                    Console.Clear();
                    DifficutlyLevel difficutlyLevel = new DifficutlyLevel();
                    difficutlyLevel.SelectLevel();
                }
            }while (keyinfo.Key != ConsoleKey.Q);

            Console.ReadKey();
            Console.WriteLine();
        }
Exemple #2
0
        private void AboutGameEventHandler(object sender, RoutedEventArgs e)
        {
            var window = new AboutGame
            {
                WindowStartupLocation = WindowStartupLocation.CenterScreen
            };

            try
            {
                window.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "О игре", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }
Exemple #3
0
        /// <summary>Открытие формы с информацией об игре и разработчике.</summary>
        private void BtAbout_Click(object sender, EventArgs e)
        {
            AboutGame about = new AboutGame();

            about.ShowDialog();             // показываем форму с игрой
        }
        private void aBoutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AboutGame ab = new AboutGame();

            ab.ShowDialog();
        }