Ejemplo n.º 1
0
        /// <summary>
        /// Creates the specific IUInstanceController of the 'IIU_PasajeroAeronave' IU pattern.
        /// </summary>
        /// <param name="exchangeInfo">IUInstanceContext reference.</param>
        /// <returns>Specific IUInstanceController of the 'IIU_PasajeroAeronave' IU pattern.</returns>
        public static IUInstanceController Instance_IIU_PasajeroAeronave(ExchangeInfo exchangeInfo)
        {
            IUInstanceContext    lContext    = new IUInstanceContext(exchangeInfo, "PasajeroAeronave", "IIU_PasajeroAeronave");
            IUInstanceController lController = new IUInstanceController("IIU_PasajeroAeronave", "PasajeroAeronave", "Clas_1348178542592177UIInst_2_Alias", lContext, null);

            // Action _Auto_.
            lController.Action = PasajeroAeronave.Action__Auto_(lController);
            // Navigation _Auto_.
            lController.Navigation = PasajeroAeronave.Navigation__Auto_(lController);
            // DisplaySet 'DS_PasajeroAeronave'.
            DisplaySetController lDisplaySetController = PasajeroAeronave.DisplaySet_DS_PasajeroAeronave(lController);

            lController.DisplaySet = lDisplaySetController;

            // Oid selector.
            lController.OidSelector = new ArgumentOVController("oidSelector", "PasajeroAeronave", "Clas_1348178542592177_Alias", "PasajeroAeronave", false, false, false, typeof(InteractionToolkit.PasajeroAeronave.IUPopulations.PIU_PasajeroAeronaveIT).FullName, null, "", null);

            // Get User preferences.
            lController.SetPreferences(Logic.UserPreferences.GetScenarioPrefs("PasajeroAeronave:IIU_PasajeroAeronave") as InstancePrefs);

            return(lController);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates the specific IUPopulationController of the 'PIU_PasajeroAeronave' IU pattern.
        /// </summary>
        /// <param name="exchangeInfo">IUPopulationContext reference.</param>
        /// <returns>Specific IUPopulationController of the 'PIU_PasajeroAeronave' IU pattern.</returns>
        public static IUPopulationController Population_PIU_PasajeroAeronave(ExchangeInfo exchangeInfo)
        {
            IUPopulationContext lContext = new IUPopulationContext(exchangeInfo, "PasajeroAeronave", "PIU_PasajeroAeronave");

            // Block size.
            lContext.BlockSize = 40;
            IUPopulationController lController = new IUPopulationController("PIU_PasajeroAeronave", "PasajeroAeronave", "Clas_1348178542592177UIPobCl_1_Alias", lContext, null);

            // Action _Auto_.
            lController.Action = PasajeroAeronave.Action__Auto_(lController);
            // Navigation _Auto_.
            lController.Navigation = PasajeroAeronave.Navigation__Auto_(lController);
            // DisplaySet '_Auto_'.
            DisplaySetByBlocksController lDisplaySetByBlocksController = new DisplaySetByBlocksController(PasajeroAeronave.DisplaySet__Auto_(lController));

            lDisplaySetByBlocksController.DisplaySetList.Add(PasajeroAeronave.DisplaySet_DS_PasajeroAeronave1(lController).CurrentDisplaySet);
            lController.DisplaySet = lDisplaySetByBlocksController;
            // Get user preferences for this scenario.
            lController.SetPreferences(Logic.UserPreferences.GetScenarioPrefs("PasajeroAeronave:PIU_PasajeroAeronave") as PopulationPrefs);

            return(lController);
        }