public ErrorsChangedEventArgs(ResursNetwork.OSI.ApplicationLayer.NetworkControllerErrorOccuredEventArgs args) : this() { DeviceUID = args.Id; if (args.Errors.PortError) Errors.Add(DeviceError.Port); }
public ErrorsChangedEventArgs(ResursNetwork.OSI.ApplicationLayer.Devices.DeviceErrorOccuredEventArgs args) : this() { DeviceUID = args.Id; if (args.Errors.CommunicationError) Errors.Add(DeviceError.Communication); if (args.Errors.ConfigurationError) Errors.Add(DeviceError.Configuration); if (args.Errors.RTCError) Errors.Add(DeviceError.RTC); }
public IsActiveChangedEventArgs(ResursNetwork.Networks.StatusChangedEventArgs args) { DeviceUID = args.Id; IsActive = args.Status == ResursNetwork.Management.Status.Running; }