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