Ejemplo n.º 1
0
 public DeviceOperator initDeviceOperator(Control control)
 {
     DeviceOperator deviceOperator = null;
     deviceOperator = new DeviceOperatorImpl(control);
     deviceOperator.Connect();
     deviceOperatorMap[control.Ip] = deviceOperator;
     return deviceOperator;
 }
Ejemplo n.º 2
0
        public DeviceOperator getDeviceOperator(Control control)
        {
            DeviceOperator deviceOperator = null;
            if (!deviceOperatorMap.ContainsKey(control.Ip))
            {
                deviceOperator = new DeviceOperatorImpl(control);
                deviceOperator.Connect();
                deviceOperatorMap[control.Ip] = deviceOperator;

            }
            deviceOperator = deviceOperatorMap[control.Ip];
            return deviceOperator;
        }