Ejemplo n.º 1
0
        private static int CompareHgh(UIComponent left, UIComponent right)
        {
            VWVehicleInfoItem component  = left.GetComponent <VWVehicleInfoItem>();
            VWVehicleInfoItem component2 = right.GetComponent <VWVehicleInfoItem>();

            return((component2.highWealth ? 1 : 0).CompareTo(component.highWealth ? 1 : 0));
        }
Ejemplo n.º 2
0
        private static int CompareNames(UIComponent left, UIComponent right)
        {
            VWVehicleInfoItem component  = left.GetComponent <VWVehicleInfoItem>();
            VWVehicleInfoItem component2 = right.GetComponent <VWVehicleInfoItem>();

            return(string.Compare(component.vehicleName, component2.vehicleName, StringComparison.InvariantCulture));
        }