Пример #1
0
        static void Main(string[] args)
        {
            //Took from assignment - was to good to create one for myself :)
            Stregsystem              stregsystem = new Stregsystem();
            StregsystemCLI           cli         = new StregsystemCLI(stregsystem);
            StregsystemCommandParser parser      = new StregsystemCommandParser(stregsystem, cli);

            cli.Start(parser);
        }
Пример #2
0
 public void Start(StregsystemCommandParser parser)
 {
     stregsystem.LoadList();
     DisplayStartMenu();
     while (true)
     {
         stregsystem.LoadList();
         parser.ParseCommand(DisplayCommandScreen());
     }
 }