示例#1
0
文件: RoadHelper.cs 项目: Jos1k/Roads
 /// <summary>
 /// Fills the AddRoadModel.
 /// </summary>
 /// <param name="manager">The ITranslationManager manager.</param>
 /// <param name="userLanguages">The user languages string.</param>
 /// <returns>The <see cref="AddRoadModel"/> with default placeholders.</returns>
 public static AddRoadModel FillAddRoadModel(IRoadsService client, AddRoadModel model, ITranslationManager manager, string userLanguages)
 {
     int searchingDepth = client.GetSearchingDepth();
     model.SearchingDepth = searchingDepth;
     model.CityPoints = new List<City>
     {
         new City
         {
             Placeholder =
                 manager.GetLabelTranslation("ARS1_Placeholder_From",
                     CultureHelper.GetCulture(userLanguages))
         },
         new City
         {
             Placeholder =
                 manager.GetLabelTranslation("ARS1_Placeholder_To",
                     CultureHelper.GetCulture(userLanguages))
         }
     };
     return model;
 }