public override AbstractDevice CreateDeviceForModule(IKnownModule devModule) { if (devModule.BaseName.Equals("VARDEVICEMODULE")) { return new VarDevice(this, devModule); } else if (devModule.BaseName.Equals("DATEDEVICEMODULE")) { return new DateDevice(this, devModule); } else if (devModule.BaseName.Equals("DELAYDEVICEMODULE")) { return new DelayDevice(this, devModule); } else { throw new InvalidDataException(String.Format( "{0}: error - unknown device requested", _driverProt)); } }
public override AbstractDevice CreateDeviceForModule(IKnownModule devModule) { if (devModule.BaseName.Equals("VARDEVICEMODULE")) { return(new VarDevice(this, devModule)); } else if (devModule.BaseName.Equals("DATEDEVICEMODULE")) { return(new DateDevice(this, devModule)); } else if (devModule.BaseName.Equals("DELAYDEVICEMODULE")) { return(new DelayDevice(this, devModule)); } else { throw new InvalidDataException(String.Format( "{0}: error - unknown device requested", _driverProt)); } }
private AutoResetEvent _evRespRcvd; // response received #endregion Fields #region Constructors public DateDevice(AbstractAdapterDriver mngr, IKnownModule module) : base(mngr, module) { }
public DateDevice(AbstractAdapterDriver mngr, IKnownModule module) : base(mngr, module) { }