private string GetDuration(AirMaterial flight)
        {
            string duration = string.Empty;
            TimeSpan flightTime = TimeSpan.Zero;
            TimeSpan connectionTime = TimeSpan.Zero;

            AirLineMatricsManager airManager = new AirLineMatricsManager();

            flightTime = airManager.GetFlightTime(flight);
            connectionTime = airManager.GetDuration(flight);

            return String.Format("{0} ({1}", airManager.FormatTimeSpan(flightTime), airManager.FormatTimeSpan(connectionTime));
        }
        private string GetDuration(AirLeg airLeg)
        {
            string duration;

            AirLineMatricsManager airManager = new AirLineMatricsManager();

            return airManager.FormatTimeSpan(airManager.GetDuration(airLeg));
        }
        protected void dlSubTrips_ItemDataBound(object sender, DataListItemEventArgs e)
        {
            System.Web.UI.WebControls.Label lblStops = (System.Web.UI.WebControls.Label)e.Item.FindControl("lblStops");
            SubAirTrip subAirTrip = (SubAirTrip)(((System.Object)(((System.Web.UI.WebControls.DataListItem)(e.Item)).DataItem)));

            AirLineMatricsManager airlineMatricsManager = new AirLineMatricsManager();
            lblStops.Text = airlineMatricsManager.GetStopsInsideFlight(subAirTrip).ToString();

            //Duration
            Label lblDuration = (System.Web.UI.WebControls.Label)e.Item.FindControl("lblDuration");
            lblDuration.Text = airlineMatricsManager.FormatTimeSpan(airlineMatricsManager.GetDuration(subAirTrip));
        }