Exemple #1
0
        private void SetearToolStripMenuItem_Click(object sender, EventArgs e)
        {
            pnlPrincipal.Controls.Clear();
            costPerMinute = new CostPerMinute(MyParking);
            pnlPrincipal.Controls.Add(costPerMinute);

            GoBackToWelcomeWindow();
        }
Exemple #2
0
        public UserInterface()
        {
            InitializeComponent();
            ParkingContext context = new ParkingContext();
            ParkingRepository <Purchase> purchaseRepository =
                new PurchaseRepository(context);
            ParkingRepository <Account> accountRepository =
                new AccountRepository(context);
            ParkingRepository <BusinessLogic.Domain.CostPerMinute> costRepository =
                new CostRepository(context);

            MyParking = new Parking(purchaseRepository,
                                    accountRepository, costRepository);

            costPerMinute = new CostPerMinute(MyParking);
        }