예제 #1
0
 public FreakyGarageForm()
 {
     InitializeComponent();
     this.frmF     = new FortuneFritzForm(); // the window for Fortune Fritz
     this.frmB     = new BudgetBobForm();    // the window for Budget Bob
     this.myGarage = new Garage("Freaky Garage");
     addSomeTestingStuff();
     showAllCars();
 }
예제 #2
0
 public FreakyGarageForm()
 {
     InitializeComponent();
     this.frmF                 = new FortuneFritzForm(); // the window for Fortune Fritz
     this.frmB                 = new BudgetBobForm();    // the window for Budget Bob
     this.myGarage             = new Garage("Freaky Garage");
     myGarage.FerrariUpdate   += frmF.showFerrari;
     myGarage.Below5000Update += frmB.showCheapCar;
     addSomeTestingStuff();
     showAllCars();
     linkedListForTestDrives = new LinkedListForTestDrives();
 }
예제 #3
0
        private LinkedListForTestDrives llForTestDrives = new LinkedListForTestDrives(); // assignment 3b

        public FreakyGarageForm()
        {
            InitializeComponent();
            this.frmF     = new FortuneFritzForm(); // the window for Fortune Fritz
            this.frmB     = new BudgetBobForm();    // the window for Budget Bob
            this.myGarage = new Garage("Freaky Garage");

            // Assignment 2
            this.myGarage.processCheapCar += new Garage.InterestingCarHandler(frmB.showCheapCar);
            this.myGarage.processFerrari  += new Garage.InterestingCarHandler(frmF.showFerrari);

            addSomeTestingStuff();
            showAllCars();
        }