Пример #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="school">School to be administrated by the loan system</param>
 /// <param name="loanManager">Loan controller</param>
 /// <param name="unitManager">Unit Controller</param>
 /// <param name="userManager">User controller</param>
 public MainScreen(School school, LoanManager loanManager, UnitManager unitManager, UserManager userManager)
 {
     this.school = school;
     loanScreen  = new LoanScreen(loanManager);
     unitScreen  = new UnitScreen(unitManager);
     userScreen  = new UserScreen(userManager);
 }
Пример #2
0
        static void Main(string[] args)
        {
            School      school      = new School("ZBC");
            LoanManager loanManager = new LoanManager(school);
            UnitManager unitManager = new UnitManager(school.Units);
            UserManager userManager = new UserManager(school.Users);

            CreateSomeTestDate(unitManager, userManager); // Random data put into the system for test purposes
            MainScreen mainScreen = new MainScreen(
                school,
                loanManager,
                unitManager,
                userManager);

            mainScreen.RunMain();
        }
Пример #3
0
 public LoanScreen(LoanManager loanManager)
 {
     this.loanManager = loanManager;
 }