public ImageObject UpdateNavigation(String strFacility, String strSection, String strDirection, String strYear) { m_strYear = strYear; m_bLinear = false; //Fill list of ImageObjects from m_listImageObjects = GlobalDatabaseOperations.GetImageObjectList(strFacility, strDirection, strYear, m_listViews); this.CurrentImage = GetNearestImage(strSection); UpdateNetworkNavigationFacility(strFacility, strSection); return(this.CurrentImage); }
/// <summary> /// Initialize a new ImageView run. Gets all images for ROUTE/DIRECTION and determines SECTIONID for each network. /// </summary> /// <param name="strRoute">ROUTE for linear section</param> /// <param name="strDirection">Travel direction for linear section</param> /// <param name="dMilePost">Milepost to display image for</param> /// <param name="strYear">Year to display data for</param> /// <returns>Closest ImageObject for input route/Direction/Milepost. Null is returned if ROUTE/DIRECTION is not found.</returns> public ImageObject UpdateNavigation(String strRoute, String strDirection, double dMilePost, String strYear) { m_strYear = strYear; m_bLinear = true; //Fill list of ImageObjects from m_listImageObjects = GlobalDatabaseOperations.GetImageObjectList(strRoute, strDirection, strYear, m_listViews); //Find closets image. this.CurrentImage = GetNearestImage(dMilePost); //Set Navigation for each network. UpdateNetworkNavigation(strRoute, strDirection); return(this.CurrentImage); }