/// <summary>
 /// Checks the instance, and resaves references if necessary.
 /// </summary>
 /// <param name="instance">The instance.</param>
 public static void CheckInstance(TransferManager instance)
 {
     if (TransferManagerInstanceId == null || !TransferManagerInstanceId.HasValue)
     {
         Initialize(instance);
     }
     else if (instance.GetInstanceID() != TransferManagerInstanceId)
     {
         DeInitialize();
         Initialize(instance);
     }
 }
        /// <summary>
        /// Saves references from specified instance.
        /// </summary>
        /// <param name="instance">The instance.</param>
        private static void Initialize(TransferManager instance)
        {
            if (Log.LogALot)
            {
                Log.DevDebug(typeof(TransferManagerHelper), "Initialize");
            }

            incomingAmountValue = GetIncomingAmount(instance);
            incomingCountValue  = GetIncomingCount(instance);
            incomingOffersValue = GetIncomingOffers(instance);

            outgoingAmountValue = GetOutgoingAmount(instance);
            outgoingCountValue  = GetOutgoingCount(instance);
            outgoingOffersValue = GetOutgoingOffers(instance);

            TransferManagerInstanceId = instance.GetInstanceID();
        }