Пример #1
0
        void HardRefresh()
        {
            _selectedEntityLeft = _uiState.PrimaryEntity;
            if (_selectedEntityLeft.Entity.HasDataBlob <VolumeStorageDB>())
            {
                CargoListLeft        = new CargoListPannelComplex(_staticData, _selectedEntityLeft, headersOpenDict);
                _hasCargoAbilityLeft = true;
            }
            else
            {
                _hasCargoAbilityLeft = false;
            }


            if (_uiState.PrimaryEntity != _uiState.LastClickedEntity)
            {
                _selectedEntityRight = _uiState.LastClickedEntity;
                if (_selectedEntityRight != null && _selectedEntityLeft.Entity.HasDataBlob <VolumeStorageDB>())
                {
                    if (!_hasCargoAbilityRight)
                    {
                        CargoListRight = new CargoListPannelComplex(_staticData, _selectedEntityRight, headersOpenDict);
                    }
                    _hasCargoAbilityRight = true;
                }
                else
                {
                    _hasCargoAbilityRight = false;
                }
            }
        }
Пример #2
0
 void OnCargoItemSelectedEvent(CargoListPannelComplex cargoPannel)
 {
     SelectedCargoPannel = cargoPannel;
     if (cargoPannel == CargoListLeft)
     {
         UnselectedCargoPannel = CargoListRight;
     }
     else
     {
         UnselectedCargoPannel = CargoListLeft;
     }
     UnselectedCargoPannel.SelectedCargoVM = null;
 }
Пример #3
0
        internal void Set2ndCargo(EntityState entity)
        {
            if (_selectedEntityLeft.Entity.HasDataBlob <CargoStorageDB>())
            {
                _selectedEntityRight = entity;
                if (entity.Entity.HasDataBlob <CargoStorageDB>())
                {
                    CargoListRight = new CargoListPannelComplex(_staticData, _selectedEntityRight, headersOpenDict);

                    CalcTransferRate();

                    _hasCargoAbilityRight = true;
                }
                else
                {
                    CargoListRight        = null;
                    _hasCargoAbilityRight = false;
                    _transferRate         = 0;
                }
            }
        }