Ejemplo n.º 1
0
        /// <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, "NaveNodriza", "_Auto_");
            IUInstanceController lController = new IUInstanceController("_Auto_", "NaveNodriza", "Clas_1347649273856884UIInst_1_Alias", lContext, null);

            // Action _Auto_.
            lController.Action = NaveNodriza.Action__Auto_(lController);
            // DisplaySet '_Auto_'.
            DisplaySetController lDisplaySetController = NaveNodriza.DisplaySet__Auto_(lController);

            lController.DisplaySet = lDisplaySetController;

            // Oid selector.
            lController.OidSelector = new ArgumentOVController("oidSelector", "NaveNodriza", "Clas_1347649273856884_Alias", "NaveNodriza", false, false, false, typeof(InteractionToolkit.NaveNodriza.IUPopulations.PIU_NaveNodrizaIT).FullName, null, "", null);

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

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

            // Block size.
            lContext.BlockSize = 40;
            IUPopulationController lController = new IUPopulationController("PIU_NaveNodriza", "PIU_NaveNodriza", "Clas_1347649273856884UIPobCl_1_Alias", lContext, null);

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

            lController.DisplaySet = lDisplaySetByBlocksController;
            // Get user preferences for this scenario.
            lController.SetPreferences(Logic.UserPreferences.GetScenarioPrefs("NaveNodriza:PIU_NaveNodriza") as PopulationPrefs);

            return(lController);
        }