1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- #region --------------- Copyright Dresser Wayne Pignone -------------
- /*
- * $Log: /Wrk/Support/ForecourtControl/Wrk/ForecourtControl/EventArgs/SiteModeChangeEventArgs.cs $
- *
- * 4 07-03-14 7:50 roger.månsson
- * Documentation.
- *
- * 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;
- using System.Collections.Generic;
- using System.Text;
- namespace Wayne.ForecourtControl
- {
- /// <summary>
- /// Event argument in the OnSiteModeChange event in ForecourtControl.
- /// </summary>
- public sealed class FuelPeriodChangeEventArgs : EventArgs
- {
- #region Fields
- int currentPeriod;
- int previousPeriod;
- int periodType;
-
- #endregion
- #region Construction
- /// <summary>
- /// Constructor
- /// </summary>
- /// <param name="siteMode"></param>
- /// <param name="siteOpen"></param>
- public FuelPeriodChangeEventArgs(int currentPeriod, int previousPeriod, int periodType)
- {
- this.currentPeriod = currentPeriod;
- this.previousPeriod = previousPeriod;
- this.periodType = periodType;
- }
- #endregion
- #region Properties
- public int CurrentPeriod
- {
- get { return currentPeriod; }
- set { currentPeriod = value; }
- }
- public int PeriodType
- {
- get { return periodType; }
- set { periodType = value; }
- }
- public int PreviousPeriod
- {
- get { return previousPeriod; }
- set { previousPeriod = value; }
- }
- #endregion
- #region ToString
- /// <summary>
- /// Returns a string representation of the object.
- /// </summary>
- /// <returns></returns>
- public override string ToString()
- {
- return string.Format(System.Globalization.CultureInfo.InvariantCulture, "SiteModeChangeEventArgs {{CurrentPeriod={0},PreviousPeriod={1},PeriodType={2}}}", currentPeriod, previousPeriod, periodType);
- }
- #endregion
- }
- }
|