private void InitDevices()
        {
            var bell = new DeviceBell("Bell", this.devMan.RaiseDeviceManagerNotification);
            var phoneLine = new DevicePhoneLine("PhoneLine", this.devMan.RaiseDeviceManagerNotification);
            var receiver = new DeviceReceiver("Receiver", this.devMan.RaiseDeviceManagerNotification);

            this.Devices = new Dictionary<string, object> { { "Bell", bell }, { "PhoneLine", phoneLine }, { "Receiver", receiver } };
        }
        private void InitDevices()
        {
            var bell      = new DeviceBell("Bell", this.devMan.RaiseDeviceManagerNotification);
            var phoneLine = new DevicePhoneLine("PhoneLine", this.devMan.RaiseDeviceManagerNotification);
            var receiver  = new DeviceReceiver("Receiver", this.devMan.RaiseDeviceManagerNotification);

            this.Devices = new Dictionary <string, object> {
                { "Bell", bell }, { "PhoneLine", phoneLine }, { "Receiver", receiver }
            };
        }
Exemple #3
0
        private void InitDevices()
        {
            var bell      = new DeviceBell(_devManager.RaiseDeviceManagerNotification, "Bell");
            var phoneLine = new DevicePhoneLine(_devManager.RaiseDeviceManagerNotification, "PhoneLine");
            var receiver  = new DeviceReceiver(_devManager.RaiseDeviceManagerNotification, "Receiver");

            Devices = new Dictionary <string, object>()
            {
                { "Bell", bell },
                { "PhoneLine", phoneLine },
                { "Receiver", receiver }
            };
        }