// The following Initialize() method is called from the DTS constructor // Write code in "Initialize()" to make necessary initial connections to // the TelephoneController and TerminalController objects public static void Initialize(TelephoneController telephoneController, TerminalController terminalController) { UserController apartment = new UserController(); telephoneController.SetApartment(apartment); terminalController.SetApartment(apartment); }
// The following Initialize() method is called from the DTS constructor // Write code in "Initialize()" to make necessary initial connections to // the TelephoneController and TerminalController objects public static void Initialize(TelephoneController telephoneController, TerminalController terminalController) { TenantManager tenantManager = new TenantManager(); telephoneController.SetTenantManager = tenantManager; terminalController.SetManager = tenantManager; }
// The following Initialize() method is called from the DTS constructor // Write code in "Initialize()" to make necessary initial connections to // the TelephoneController and TerminalController objects public static void Initialize(TelephoneController telephoneController, TerminalController terminalController) { List <Tenant> newTenants = new List <Tenant>(); terminalController.SetTenants(newTenants); telephoneController.Set(terminalController); }
private void DTS_Load(object sender, EventArgs e) { // You may need to modify the following to construct your initial object structure terminalController = new TerminalController(); terminalDevice = new TerminalDevice(terminalController); terminalController.TerminalDevice = terminalDevice; telephoneDevice = new TelephoneDevice(); telephoneController = new TelephoneController(telephoneDevice); }
private void DTS_Load(object sender, EventArgs e) { telephoneDevice = new TelephoneDevice(); telephoneController = new TelephoneController(telephoneDevice); terminalDevice = new TerminalDevice(); terminalController = new TerminalController(terminalDevice); // Write code to make necessary object connections to/from the TerminalController // and TelephoneController objects in the following static method "Initialize()" // in the static class "DTSInitlializer" DTSInitializer.Initialize(telephoneController, terminalController); }
// The following Initialize() method is called from the DTS constructor // Write code in "Initialize()" to make necessary initial connections to // the TelephoneController and TerminalController objects public static void Initialize(TelephoneController telephoneController, TerminalController terminalController) { }
// The following Initialize() method is called from the DTS constructor // Write code in "Initialize()" to make necessary initial connections to // the TelephoneController and TerminalController objects public static void Initialize(TelephoneController telephoneController, TerminalController terminalController) { Administrator admin = new Administrator(); List <Tenant> tenantList = new List <Tenant>(); }