#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
{
///
/// Event argument in the OnSiteModeChange event in ForecourtControl.
///
public sealed class FuelPeriodChangeEventArgs : EventArgs
{
#region Fields
int currentPeriod;
int previousPeriod;
int periodType;
#endregion
#region Construction
///
/// Constructor
///
///
///
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
///
/// Returns a string representation of the object.
///
///
public override string ToString()
{
return string.Format(System.Globalization.CultureInfo.InvariantCulture, "SiteModeChangeEventArgs {{CurrentPeriod={0},PreviousPeriod={1},PeriodType={2}}}", currentPeriod, previousPeriod, periodType);
}
#endregion
}
}