/// <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); }
/// <summary> /// Save the Scenario info in the Preferences Server /// </summary> private void SaveScenarioInfo() { IUPopulationController popController = mQueryController as IUPopulationController; if (popController != null) { Logics.Logic.UserPreferences.SavePopulationInfo(popController.Context.ClassName + ":" + popController.Name, int.Parse(textBox_BlockSize.Text), popController.DisplaySet.CurrentDisplaySet.Name, popController.DisplaySet.DisplaySetList); return; } IUInstanceController insController = mQueryController as IUInstanceController; if (insController != null) { Logics.Logic.UserPreferences.SaveInstanceInfo(insController.Context.ClassName + ":" + insController.Name, insController.DisplaySet.CurrentDisplaySet.Name, insController.DisplaySet.DisplaySetList); } }
/// <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); }
/// <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); }
/// <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, "Aeronave", "_Auto_"); IUInstanceController lController = new IUInstanceController("_Auto_", "Aeronave", "Clas_1348178411520734UIInst_1_Alias", lContext, null); // Action _Auto_. lController.Action = Aeronave.Action__Auto_(lController); // Navigation _Auto_. lController.Navigation = Aeronave.Navigation__Auto_(lController); // DisplaySet '_Auto_'. DisplaySetController lDisplaySetController = Aeronave.DisplaySet__Auto_(lController); lController.DisplaySet = lDisplaySetController; // Oid selector. lController.OidSelector = new ArgumentOVController("oidSelector", "Aeronave", "Clas_1348178411520734_Alias", "Aeronave", false, false, false, typeof(InteractionToolkit.Aeronave.IUPopulations.PIU_AeronaveIT).FullName, null, "", null); // Get User preferences. lController.SetPreferences(Logic.UserPreferences.GetScenarioPrefs("Aeronave:_Auto_") as InstancePrefs); return(lController); }
/// <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); }
/// <summary> /// Initializes the 'MDIU_PasajeroAeronaveIT' instance form. /// </summary> /// <param name="exchangeInfo">Exchange information</param> /// <returns>IUMasterDetailController</returns> public IUMasterDetailController Initialize(ExchangeInfo exchangeInfo) { Controller = ControllerFactory.PasajeroAeronave.MasterDetail_MDIU_PasajeroAeronave(exchangeInfo); Controller.Scenario = new ScenarioPresentation(this, ScenarioType.MasterDetail); #region Master-Detail MDIU_PasajeroAeronave Links IUInstanceController ControllerMaster = Controller.Master as IUInstanceController; #region Instance IIU_PasajeroAeronave Links // DisplaySet ControllerMaster.DisplaySet.Viewer = new ListViewPresentation(lstViewDisplaySetMaster, MastertoolStripExportExcel, MastertoolStripExportWord, MastertoolStripRefresh, MastertoolStripHelp, MasteroptionsToolStripMenuItem, mnuNavigationsMaster); // OID Selector ControllerMaster.OidSelector.Label = new LabelPresentation(this.lOIDSelectorMaster); ControllerMaster.OidSelector.Editors[0] = new MaskedTextBoxPresentation(this.maskedTextBoxMasterid_PasajeroAeronave1); ControllerMaster.OidSelector.Trigger = new ButtonPresentation(this.bOIDSelectorMaster); if (ControllerMaster.OidSelector.SupplementaryInfo != null) { ControllerMaster.OidSelector.SupplementaryInfo.Viewer = new LabelDisplaySetPresentation(this.lSIOIDSelectorMaster); } // Actions ControllerMaster.Action.ActionItems[0].Trigger = new ToolStripButtonPresentation(this.toolstripActionsMaster_0, this.mnuActionsMaster_0); ControllerMaster.Action.ActionItems[1].Trigger = new ToolStripButtonPresentation(this.toolstripActionsMaster_1, this.mnuActionsMaster_1); ControllerMaster.Action.ActionItems[2].Trigger = new ToolStripButtonPresentation(this.toolstripActionsMaster_2, this.mnuActionsMaster_2); ControllerMaster.Action.ActionItems[3].Trigger = new ToolStripButtonPresentation(this.toolstripActionsMaster_3, this.mnuActionsMaster_3); ControllerMaster.Action.ActionItems[4].Trigger = new ToolStripButtonPresentation(this.toolstripActionsMaster_4, this.mnuActionsMaster_4); ControllerMaster.Action.ActionItems[5].Trigger = new ToolStripButtonPresentation(this.toolStripPrintMaster, this.mnuPrintMaster); // Navigations ControllerMaster.Navigation.NavigationItems[0].Trigger = new ToolStripButtonPresentation(this.toolstripNavigationsMaster_0, this.mnuNavigationsMaster_0); ControllerMaster.Navigation.NavigationItems[1].Trigger = new ToolStripButtonPresentation(this.toolstripNavigationsMaster_1, this.mnuNavigationsMaster_1); ControllerMaster.Navigation.NavigationItems[2].Trigger = new ToolStripButtonPresentation(this.toolstripNavigationsMaster_2, this.mnuNavigationsMaster_2); this.pnlDisplaySetMaster.ContextMenuStrip = MastercontextMenuStrip; ControllerMaster.DisplaySet.PreferencesTrigger = new ToolStripMenuItemPresentation(this.MastertoolStripPreferences); #endregion Instance IIU_PasajeroAeronave Links // Save position Controller.SavePositionTrigger = new ToolStripMenuItemPresentation(MastertoolStripSavePositions); IUPopulationController ControllerDetail0 = Controller.Details[0] as IUPopulationController; #region Population PIU_Pasajero Links // Displayset ControllerDetail0.DisplaySet.Population = new DataGridViewPresentation(this.gPopulationDetail0, this.Detail0toolStripExportExcel, this.Detail0toolStripExportWord, this.Detail0toolStripRetrieveAll, this.Detail0toolStripRefresh, this.Detail0toolStripHelp, this.Detail0optionsToolStripMenuItem, this.mnuNavigationsDetail0, exchangeInfo); ControllerDetail0.DisplaySet.NumberOfInstances = new ToolStripStatusLabelNumberInstancesPresentation(this.toolStripStatusLabelCountDetail0); ControllerDetail0.DisplaySet.First = null; ControllerDetail0.DisplaySet.Previous = null; ControllerDetail0.DisplaySet.Refresh = null; ControllerDetail0.DisplaySet.Next = null; ControllerDetail0.DisplaySet.ExecuteServiceTrigger = new ToolStripDropDownButtonPresentation(this.toolStripDropDownButtonSaveDetail0); ControllerDetail0.DisplaySet.PreferencesTrigger = new ToolStripMenuItemPresentation(this.Detail0toolStripPreferences); ControllerDetail0.DisplaySet.SaveColumnsWidthTrigger = new ToolStripMenuItemPresentation(this.Detail0toolStripSaveColumnWidth); // Order Criteria // Actions ControllerDetail0.Action.ActionItems[0].Trigger = new ToolStripButtonPresentation(this.toolstripActionsDetail0_0, this.mnuActionsDetail0_0); ControllerDetail0.Action.ActionItems[1].Trigger = new ToolStripButtonPresentation(this.toolstripActionsDetail0_1, this.mnuActionsDetail0_1); ControllerDetail0.Action.ActionItems[2].Trigger = new ToolStripButtonPresentation(this.toolstripActionsDetail0_2, this.mnuActionsDetail0_2); ControllerDetail0.Action.ActionItems[3].Trigger = new ToolStripButtonPresentation(this.toolstripActionsDetail0_3, this.mnuActionsDetail0_3); ControllerDetail0.Action.ActionItems[4].Trigger = new ToolStripButtonPresentation(this.toolStripPrintDetail0, this.mnuPrintDetail0); // Navigations ControllerDetail0.Navigation.NavigationItems[0].Trigger = new ToolStripButtonPresentation(this.toolstripNavigationsDetail0_0, this.mnuNavigationsDetail0_0); // Contextual Menu this.gPopulationDetail0.ContextMenuStrip = this.Detail0contextMenuStrip; #endregion Population PIU_Pasajero Links #endregion Master-Detail MDIU_PasajeroAeronave Links // Close button Controller.CancelTrigger = new ButtonPresentation(this.bCancel); // Initialize scenario Controller.Initialize(); return(Controller); }