/// <summary> /// Creates the specific IUPopulationController of the 'PIU_Pasajero' IU pattern. /// </summary> /// <param name="exchangeInfo">IUPopulationContext reference.</param> /// <returns>Specific IUPopulationController of the 'PIU_Pasajero' IU pattern.</returns> public static IUPopulationController Population_PIU_Pasajero(ExchangeInfo exchangeInfo) { IUPopulationContext lContext = new IUPopulationContext(exchangeInfo, "Pasajero", "PIU_Pasajero"); // Block size. lContext.BlockSize = 40; IUPopulationController lController = new IUPopulationController("PIU_Pasajero", "Pasajero", "Clas_1348178542592658UIPobCl_1_Alias", lContext, null); // Action _Auto_. lController.Action = Pasajero.Action__Auto_(lController); // Navigation _Auto_. lController.Navigation = Pasajero.Navigation__Auto_(lController); // DisplaySet '_Auto_'. DisplaySetByBlocksController lDisplaySetByBlocksController = new DisplaySetByBlocksController(Pasajero.DisplaySet__Auto_(lController)); lController.DisplaySet = lDisplaySetByBlocksController; // Get user preferences for this scenario. lController.SetPreferences(Logic.UserPreferences.GetScenarioPrefs("Pasajero:PIU_Pasajero") as PopulationPrefs); return(lController); }
/// <summary> /// Creates the specific IUInstanceController of the '_Auto_' IU pattern. /// </summary> /// <param name="exchangeInfo">IUInstanceContext reference.</param> /// <returns>Specific IUInstanceController of the '_Auto_' IU pattern.</returns> public static IUInstanceController Instance__Auto_(ExchangeInfo exchangeInfo) { IUInstanceContext lContext = new IUInstanceContext(exchangeInfo, "Pasajero", "_Auto_"); IUInstanceController lController = new IUInstanceController("_Auto_", "Pasajero", "Clas_1348178542592658UIInst_1_Alias", lContext, null); // Action _Auto_. lController.Action = Pasajero.Action__Auto_(lController); // Navigation _Auto_. lController.Navigation = Pasajero.Navigation__Auto_(lController); // DisplaySet '_Auto_'. DisplaySetController lDisplaySetController = Pasajero.DisplaySet__Auto_(lController); lController.DisplaySet = lDisplaySetController; // Oid selector. lController.OidSelector = new ArgumentOVController("oidSelector", "Pasajero", "Clas_1348178542592658_Alias", "Pasajero", false, false, false, typeof(InteractionToolkit.Pasajero.IUPopulations.PIU_PasajeroIT).FullName, null, "", null); // Get User preferences. lController.SetPreferences(Logic.UserPreferences.GetScenarioPrefs("Pasajero:_Auto_") as InstancePrefs); return(lController); }