Exemplo n.º 1
0
		public ErrorsChangedEventArgs(ResursNetwork.OSI.ApplicationLayer.NetworkControllerErrorOccuredEventArgs args)
			: this()
		{
			DeviceUID = args.Id;
			if (args.Errors.PortError)
				Errors.Add(DeviceError.Port);
		}
Exemplo n.º 2
0
		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);
		}
Exemplo n.º 3
0
		public IsActiveChangedEventArgs(ResursNetwork.Networks.StatusChangedEventArgs args)
		{
			DeviceUID = args.Id;
			IsActive = args.Status == ResursNetwork.Management.Status.Running;
		}