static void Main(string[] args) { IStregsystem stregsystem = new Stregsystem(); IStregsystemUI ui = new StregsystemCLI(stregsystem); StregsystemController sc = new StregsystemController(ui, stregsystem); ui.Start(); }
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); }
public StregsystemCLI() { Parser = new StregsystemController(this); }