public AddVehicleWindow(object gManager) { InitializeComponent(); gMngr = (GarageManager)gManager; var elements = new List <UIElement> { regnrTxt, wheelsTxt, colorTxt }; addEventListeners(elements); }
public AddGarage(object gManager) { InitializeComponent(); gMngr = (GarageManager)gManager; }