GetProfit() public method

public GetProfit ( ) : double
return double
        public AirlinesMVVM(Airline airline)
        {
            Airline = airline;
            Profit = Airline.GetProfit();
            AvgFleetAge = Airline.GetAverageFleetAge();

            StatisticsType passengersType = StatisticsTypes.GetStatisticsType("Passengers");
            StatisticsType passengersAvgType = StatisticsTypes.GetStatisticsType("Passengers%");
            StatisticsType arrivalsType = StatisticsTypes.GetStatisticsType("Arrivals");
            StatisticsType cargoType = StatisticsTypes.GetStatisticsType("Cargo");
            StatisticsType cargoAvgType = StatisticsTypes.GetStatisticsType("Cargo%");

            Passengers = Airline.Statistics.GetStatisticsValue(
                GameObject.GetInstance().GameTime.Year,
                passengersType);
            PassengersPerFlight = Airline.Statistics.GetStatisticsValue(
                GameObject.GetInstance().GameTime.Year,
                passengersAvgType);
            Flights = Airline.Statistics.GetStatisticsValue(
                GameObject.GetInstance().GameTime.Year,
                arrivalsType);
            Cargo = Airline.Statistics.GetStatisticsValue(GameObject.GetInstance().GameTime.Year, cargoType);
            CargoPerFlight = Airline.Statistics.GetStatisticsValue(
                GameObject.GetInstance().GameTime.Year,
                cargoAvgType);

            Stocks = Airline.Shares.Count;
            StocksForSale = Airline.Shares.Count(s => s.Airline == null);
            StockPrice = AirlineHelpers.GetPricePerAirlineShare(Airline);

            setOwnershipValues();
        }