コード例 #1
0
        /// <summary>
        /// Initializes the 'IIU_PasajeroAeronaveIT' instance form.
        /// </summary>
        /// <param name="exchangeInfo">Exchange information.</param>
        /// <returns>IUInstanceController.</returns>
        public IUInstanceController Initialize(ExchangeInfo exchangeInfo)
        {
            // Controller factory.
            Controller = ControllerFactory.PasajeroAeronave.Instance_IIU_PasajeroAeronave(exchangeInfo);

            Controller.Scenario = new ScenarioPresentation(this, ScenarioType.Instance);

            #region Instance IIU_PasajeroAeronave Links
            // DisplaySet
            Controller.DisplaySet.Viewer = new ListViewPresentation(lstViewDisplaySet, toolStripExportExcel, toolStripExportWord, toolStripRefresh, toolStripHelp, optionsToolStripMenuItem, mnuNavigations);
            // OID Selector
            Controller.OidSelector.Label = new LabelPresentation(this.lOIDSelector);
            Controller.OidSelector.Editors[0] = new MaskedTextBoxPresentation(this.maskedTextBoxid_PasajeroAeronave1);
            Controller.OidSelector.Trigger = new ButtonPresentation(this.bOIDSelector);
            if (Controller.OidSelector.SupplementaryInfo != null)
            {
                Controller.OidSelector.SupplementaryInfo.Viewer = new LabelDisplaySetPresentation(this.lSIOIDSelector);
            }

            // Actions
            Controller.Action.ActionItems[0].Trigger = new ToolStripButtonPresentation(this.toolstripActions_0, this.mnuActions_0);
            Controller.Action.ActionItems[1].Trigger = new ToolStripButtonPresentation(this.toolstripActions_1, this.mnuActions_1);
            Controller.Action.ActionItems[2].Trigger = new ToolStripButtonPresentation(this.toolstripActions_2, this.mnuActions_2);
            Controller.Action.ActionItems[3].Trigger = new ToolStripButtonPresentation(this.toolstripActions_3, this.mnuActions_3);
            Controller.Action.ActionItems[4].Trigger = new ToolStripButtonPresentation(this.toolstripActions_4, this.mnuActions_4);
            Controller.Action.ActionItems[5].Trigger = new ToolStripButtonPresentation(this.toolStripPrint, this.mnuPrint);

            // Navigations
            Controller.Navigation.NavigationItems[0].Trigger = new ToolStripButtonPresentation(this.toolstripNavigations_0, this.mnuNavigations_0);
            Controller.Navigation.NavigationItems[1].Trigger = new ToolStripButtonPresentation(this.toolstripNavigations_1, this.mnuNavigations_1);
            Controller.Navigation.NavigationItems[2].Trigger = new ToolStripButtonPresentation(this.toolstripNavigations_2, this.mnuNavigations_2);
            this.pnlDisplaySet.ContextMenuStrip = contextMenuStrip;
            Controller.DisplaySet.PreferencesTrigger = new ToolStripMenuItemPresentation(this.toolStripPreferences);
            #endregion Instance IIU_PasajeroAeronave Links

            // Save position trigger
            Controller.SavePositionTrigger = new ToolStripMenuItemPresentation(toolStripSavePositions);

            // Close Button
            Controller.CancelTrigger = new ButtonPresentation(this.bCancel);

            // Initialize controller.
            Controller.Initialize();

            return Controller;
        }
コード例 #2
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;
        }
コード例 #3
0
ファイル: Pasajero.cs プロジェクト: sgon1853/UPM_MDD_Thesis
        /// <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;
        }
コード例 #4
0
 /// <summary>
 /// Initializes a new Tree node controller
 /// </summary>
 /// <param name="parentNodeId">Parent node identifier</param>
 /// <param name="id">Id</param>
 /// <param name="queryController">Detail Interface</param>
 /// <param name="instanceMasterController">Main Master Instance IU</param>
 /// <param name="isMainMaster">True if it is the Main Master</param>
 /// <param name="showGroupingNode">True if Grouping nodes must be shown</param>
 public TreeNodeController(string parentNodeId, string id, IDetailController queryController, IUInstanceController instanceMasterController, bool isMainMaster, bool showGroupingNode)
 {
     mRecursiveNodes  = new List <TreeNodeController>();
     Filters          = new FilterControllerList();
     mOriginalNode    = null;
     ParentNodeId     = parentNodeId;
     NodeId           = id;
     mIsMainMaster    = isMainMaster;
     ShowGroupingNode = showGroupingNode;
     ShowInTree       = CalculateShowInTree(queryController);
     FinalNodeID      = NodeId;
     InitializeNode(queryController);
 }
コード例 #5
0
 /// <summary>
 /// Initializes a new Tree node controller
 /// </summary>
 /// <param name="parentNodeId">Parent node identifier</param>
 /// <param name="id">Id</param>
 /// <param name="queryController">Detail Interface</param>
 /// <param name="instanceMasterController">Main Master Instance IU</param>
 /// <param name="isMainMaster">True if it is the Main Master</param>
 /// <param name="showGroupingNode">True if Grouping nodes must be shown</param>
 public TreeNodeController(string parentNodeId, string id, IDetailController queryController, IUInstanceController instanceMasterController, bool isMainMaster, bool showGroupingNode)
 {
     mRecursiveNodes = new List<TreeNodeController>();
     Filters = new FilterControllerList();
     mOriginalNode = null;
     ParentNodeId = parentNodeId;
     NodeId = id;
     mIsMainMaster = isMainMaster;
     ShowGroupingNode = showGroupingNode;
     ShowInTree = CalculateShowInTree(queryController);
     FinalNodeID = NodeId;
     InitializeNode(queryController);
 }
コード例 #6
0
ファイル: Revision.cs プロジェクト: sgon1853/UPM_MDD_Thesis
        /// <summary>
        /// Creates the specific IUInstanceController of the 'IIU_Revision' IU pattern.
        /// </summary>
        /// <param name="exchangeInfo">IUInstanceContext reference.</param>
        /// <returns>Specific IUInstanceController of the 'IIU_Revision' IU pattern.</returns>
        public static IUInstanceController Instance_IIU_Revision(ExchangeInfo exchangeInfo)
        {
            IUInstanceContext lContext = new IUInstanceContext(exchangeInfo,"Revision", "IIU_Revision");
            IUInstanceController lController = new IUInstanceController("IIU_Revision", "Revision", "Clas_1348178542592347UIInst_1_Alias" ,lContext,null);

            // Action _Auto_.
            lController.Action = Revision.Action__Auto_(lController);
            // Navigation _Auto_.
            lController.Navigation = Revision.Navigation__Auto_(lController);
            // DisplaySet '_Auto_'.
            DisplaySetController lDisplaySetController = Revision.DisplaySet__Auto_(lController);
            lController.DisplaySet = lDisplaySetController;

            // Oid selector.
            lController.OidSelector = new ArgumentOVController("oidSelector", "Revision", "Clas_1348178542592347_Alias", "Revision", false, false, false, typeof(InteractionToolkit.Revision.IUPopulations._Auto_IT).FullName, null, "", null);

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

            return lController;
        }