Server.Engines.Reports.StaffHistory.Load C# (CSharp) Method

Load() public method

public Load ( ) : void
return void
		public void Load()
		{
			string path = Path.Combine( Core.BaseDirectory, "staffHistory.xml" );

			if ( !File.Exists( path ) )
				return;

			PersistanceReader pr = new XmlPersistanceReader( path, "Staff" );

			pr.ReadDocument( this );

			pr.Close();
		}

Usage Example

Exemplo n.º 1
0
        public static void Initialize()
        {
            m_StatsHistory = new SnapshotHistory();
            m_StatsHistory.Load();

            m_StaffHistory = new StaffHistory();
            m_StaffHistory.Load();

            DateTime now = DateTime.Now;

            DateTime date      = now.Date;
            TimeSpan timeOfDay = now.TimeOfDay;

            m_GenerateTime = date + TimeSpan.FromHours(Math.Ceiling(timeOfDay.TotalHours));

            Timer.DelayCall(TimeSpan.FromMinutes(0.5), TimeSpan.FromMinutes(0.5), new TimerCallback(CheckRegenerate));
        }
All Usage Examples Of Server.Engines.Reports.StaffHistory::Load