Exemplo n.º 1
0
		private void OnDeviceHasError(DeviceErrorOccuredEventArgs args)
		{
			if (args == null)
			{
				throw new ArgumentNullException();
			}

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

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