Example #1
0
        public void ControllMenu()
        {
            Console.WriteLine(_title);

            while (true)
            {
                Console.Write(_user);

                string input = Console.ReadLine();

                switch (CommandPointer(input))
                {
                case 0:
                    ShowComments();
                    break;

                case 4:
                    MainControll mainControll = new MainControll();
                    mainControll.ControllMenu();
                    break;

                case 99:
                    Console.WriteLine();
                    break;

                default:
                    Console.WriteLine("Brak komendy!!");
                    break;
                }
            }
        }
        public void ControllMenu()
        {
            Console.WriteLine(_title);

            while (true)
            {
                Console.Write(_user);

                string input = Console.ReadLine();

                switch (CommandPointer(input))
                {
                case 0:
                    ShowBatches();
                    break;

                case 1:
                    Range();
                    break;

                case 2:
                    InsertBatch();
                    break;

                case 3:
                    MainControll main = new MainControll();
                    main.ControllMenu();
                    break;

                case 99:
                    Console.WriteLine();
                    break;

                case 101:
                    break;

                default:
                    Console.WriteLine("Brak komendy!!");
                    break;
                }
            }
        }