Пример #1
0
        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);
        }
Пример #2
0
        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);
        }