Пример #1
0
 public Controller()
 {
     InitializeController();
     // instantiate a Salesperson object
     _salesperson = new Salesperson();
     // instantiate a ConsoleView object
     _consoleView = new ConsoleView(_salesperson);
     // begins running the application UI
     ManageApplicationLoop();
 }
Пример #2
0
        /// <summary>
        /// default constructor to create the console view objects
        /// </summary>
        public ConsoleView(Salesperson salesperson)
        {
            _salesperson = salesperson;

            InitializeConsole();
        }