コード例 #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();
        }