private void CloseSession(IStatSession session)
 {
     // Close off session based on type
     if (session.SessionType == MiningSession.DefaultSessionType)
     {
         currentMiningSession = null;
     }
     if (session.SessionType == TradingSession.DefaultSessionType)
     {
         currentTradingSession = null;
     }
     if (session.SessionType == CombatSession.DefaultSessionType)
     {
         currentCombatSession = null;
     }
     if (session.SessionType == TravelSession.DefaultSessionType)
     {
         currentTravelSession = null;
     }
     if (session.SessionType == ExplorationSession.DefaultSessionType)
     {
         currentExplorationSession = null;
     }
     if (session.SessionType == ScavengingSession.DefaultSessionType)
     {
         currentScavengingSession = null;
     }
 }
 internal TradingSession GetTradeSession(DateTime timestamp, string reason)
 {
     if (!IsActivelyTrading)
     {
         currentTradingSession = new TradingSession();
         currentTradingSession.SetSessionDefaults(this);
         currentTradingSession.StartSession(timestamp, reason);
     }
     return(currentTradingSession);
 }