Пример #1
0
        static void Main(string[] args)
        {
            IStregsystem          stregsystem = new Stregsystem();
            IStregsystemUI        ui          = new StregsystemCLI(stregsystem);
            StregsystemController sc          = new StregsystemController(ui, stregsystem);

            ui.Start();
        }
Пример #2
0
        public void Start()
        {
            StregsystemController ssc = new StregsystemController();

            _running = true;
            DisplayAktiveProducts();
            Console.Write("\nQuickbuy: ");
            do
            {
                string command = Console.ReadLine();
                DisplayAktiveProducts();
                if (command == ":q" || command == ":quit")
                {
                    Close();
                }
                ssc.RunCommand(command);
                Console.Write("\n\nQuickbuy: ");
            } while (_running);
        }
Пример #3
0
 public StregsystemCLI()
 {
     Parser = new StregsystemController(this);
 }