Example #1
0
		private void OnDeviceHasError(DeviceErrorOccuredEventArgs args)
		{
			if (args == null)
			{
				throw new ArgumentNullException();
			}

			if (DeviceHasError != null)
			{
				DeviceHasError(this, args);
			}
		}
Example #2
0
        private void EventHandler_Device_ErrorOccurred(object sender, DeviceErrorOccuredEventArgs e)
        {
			OnDeviceHasError(e);
        }
Example #3
0
 protected virtual void OnErrorOccurred(DeviceErrorOccuredEventArgs args)
 {
     if (ErrorOccurred != null)
     {
         ErrorOccurred(this, 
             args == null ? new DeviceErrorOccuredEventArgs() : args);
     }
 }
Example #4
0
		private void OnErrorOccurred(DeviceErrorOccuredEventArgs args)
		{
			if (args == null)
			{
				throw new ArgumentNullException();
			}

			if (ErrorOccurred != null)
			{
				ErrorOccurred(this, args);
			}
		}
Example #5
0
			/// <summary>
			/// Сбрасывает все наступившие события
			/// </summary>
			public void ResetEventsFlags()
			{
				_errorOccuredEArgs = null;
				_paramChangedArgs = null;
				_statusChangedArgs = null;
			}
Example #6
0
			private void EventHandler_manager_DeviceHasError(
				object sender, DeviceErrorOccuredEventArgs e)
			{
				_errorOccuredEArgs = e;
			}