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); }
public void Start(StregsystemCommandParser parser) { stregsystem.LoadList(); DisplayStartMenu(); while (true) { stregsystem.LoadList(); parser.ParseCommand(DisplayCommandScreen()); } }