示例#1
0
 private void UpdateView()
 {
     if (colonyItems != null)
     {
         var selectedIndex = ColonyItems.IndexOf(SelectedColonyItem);
         SelectedSubCategory = SelectedSubCategory;
         if (selectedIndex > -1)
         {
             SelectedColonyItem = ColonyItems[selectedIndex];
         }
     }
     StorageSpace = ColonyController.GetStorageSpaceUsage();
     LivingSpace  = ColonyController.GetLivingSpaceUsage();
 }