Beispiel #1
0
        public void Show()
        {
            boardSlides = new BoardSlides();
            boardSlides.SingleUse();
            Console.Clear();

            //var startTimeSpan = TimeSpan.Zero;
            //var periodTimeSpan = TimeSpan.FromSeconds(1);

            //var timer = new System.Threading.Timer((e) =>
            //{

            //}, null, startTimeSpan, periodTimeSpan);



            bool   running = true;
            string choice  = "";

            do
            {
                Showmenu1();
                choice = GetUserChoice();
                switch (choice)
                {
                case "1": DoActionFor1(); break;

                case "2": DoActionFor2(); break;

                case "3": DoActionFor3(); break;

                //case "q": MoveShip(); break;
                //case "4": DoActionFor4(); break;
                case "0": running = false; break;

                default: ShowMenuSelectionErroe(); break;
                }
            } while (running);
        }
Beispiel #2
0
 public void DoActionFor1()
 {
     boardSlides = new BoardSlides();
     boardSlides.SingleUse();
 }