Пример #1
0
        protected virtual void Dispose(bool disposing)
        {
            if (!_disposedValue)
            {
                Objects.Clear();
                RemoteObjects.Clear();
                Objects       = null;
                RemoteObjects = null;
                _account      = null;

                _disposedValue = true;
            }
        }
Пример #2
0
        public void Update(ExchangeLeaveMessage message)
        {
            if (_account.State != Enums.AccountStates.EXCHANGE)
            {
                return;
            }

            Objects.Clear();
            RemoteObjects.Clear();
            Kamas          = RemoteKamas = 0;
            CurrentWeight  = MaxWeight = RemoteCurrentWeight = RemoteMaxWeight = 0;
            _step          = 0;
            _account.State = Enums.AccountStates.NONE;

            ExchangeLeft?.Invoke();
        }