1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #region --------------- Copyright Dresser Wayne Pignone -------------
- /*
- * $Log: /Wrk/Support/ForecourtControl/Wrk/ForecourtControl/EventArgs/NozzleStateChangeEventArgs.cs $
- *
- * 3 07-02-16 9:59 roger.månsson
- * FxCop changes
- *
- * 2 07-01-31 14:00 roger.månsson
- * Added ToString() methods
- */
- #endregion
- using System;
- namespace Wayne.ForecourtControl
- {
- /// <summary>
- /// Event argument for a PumpStateChange Event.
- /// </summary>
- public class NozzleStateChangeEventArgs : EventArgs
- {
- #region Fields
- private INozzle nozzle;
- private NozzleState nozzleState;
- #endregion
- #region Constructor
- /// <summary>
- /// Constructor
- /// </summary>
- ///<param name="nozzle">The Nozzle which state has changed</param>
- ///<param name="nozzleState">The new Nozzle state</param>
- public NozzleStateChangeEventArgs(INozzle nozzle, NozzleState nozzleState)
- {
- this.nozzle = nozzle;
- this.nozzleState = nozzleState;
- }
- #endregion
- #region Properties
- /// <summary>
- /// The Nozzle which state has changed.
- /// </summary>
- public INozzle Nozzle { get { return nozzle; } }
- /// <summary>
- /// The new Nozzle state.
- /// </summary>
- public NozzleState NozzleState { get { return nozzleState; } }
- #endregion
- #region ToString
- /// <summary>
- /// Returns a string representation of the class.
- /// </summary>
- /// <returns></returns>
- public override string ToString()
- {
- return string.Format(System.Globalization.CultureInfo.InvariantCulture, "NozzleStateChangeEventArgs, nozzle={0}:{1}, state={2}", nozzle.ParentEntity.Id, nozzle.Id, nozzleState);
- }
- #endregion
- }
- }
|