private void OnCapacitySubmitted(UIComponent component, string text)
        {
            if (this._selectedIndex <= -1 || this._selectedSubService == ItemClass.SubService.PublicTransportTaxi)
            {
                return;
            }
            PrefabData prefab   = GetPrefabs()[this._selectedIndex];
            int        carCount = prefab.CarCount;
            int        int32    = Utils.ToInt32(text);
            int        num1     = 0;

            if (int32 > 0)
            {
                num1 = Utils.RoundToNearest((float)(int32 / carCount), 5) * carCount;
                (component as UITextField).text = num1.ToString();
            }
            UITextField uiTextField = this._rightSidePanel.Find <UITextField>("MaintenanceCost");

            if (!uiTextField.parent.enabled)
            {
                return;
            }
            float num2 = (float)num1 / (float)carCount / (float)GameDefault.GetCapacity(prefab.Info.GetService(), prefab.Info.GetSubService(), prefab.Info.GetClassLevel());

            uiTextField.text = Mathf.RoundToInt((float)(PrefabData.GetMaintenanceCost(prefab.Info.GetService(), prefab.Info.GetSubService(), prefab.Info.GetClassLevel(), prefab.Info.m_vehicleAI) * 16) * num2).ToString();
        }