Пример #1
0
        // -------------------------------------------------------------------------------
        static void Main(string[] args)
        {
            bool FlagDebug = false;
            int  Width;
            int  Height;

            //FlagDebug = true; // Debug!

            if (FlagDebug)
            {
                Width  = 100;
                Height = 50;
            }
            else
            {
                Width  = Global.WindowWidth + 2;
                Height = Global.WindowHeight + 1;
            }

            Console.Clear();
            Console.Title = "Cудоку — Шаг. Версия 1.0";
            Console.SetWindowSize(Width, Height);
            Console.BufferWidth   = Width;
            Console.BufferHeight  = Height;
            Console.CursorVisible = false;

            //GridTemplate.Show();
            //GridDriver.Start(); MessageText
            //WindowSudoku.Show(); WindowAbout
            WindowF1.Init();
            WindowMenu.Init();
            WindowAbout.Init();

            //WindowAbout.Show();

            WindowMenu.Show();


            //Console.ReadKey();
        }
Пример #2
0
        // -------------------------------------------------------------------------------
        private static void _Enter()
        {
            //
            switch (s_MenuIndex)
            {
            case 0:
                WindowF1.Show();
                WindowMenu.Show();
                break;

            case 1:
                Global.Game = Global.Mode.EASY;
                WindowSudoku.Show();
                WindowMenu.Show();
                break;

            case 2:
                Global.Game = Global.Mode.MEDIUM;
                WindowSudoku.Show();
                WindowMenu.Show();
                break;

            case 3:
                Global.Game = Global.Mode.HARD;
                WindowSudoku.Show();
                WindowMenu.Show();
                break;

            case 4:
                WindowAbout.Show();
                WindowMenu.Show();
                break;

            case 5:
                s_FlagExit = true;
                return;
            }
        }