public void CustomizeDataSourceWizard(IWizardCustomization <DashboardDataSourceModel> customization) { customization.RegisterPage <ConfigureQueryPage <DashboardDataSourceModel>, ConfigureQueryPageEx <DashboardDataSourceModel> >(); customization.RegisterPageView <IConfigureQueryPageView, ConfigureQueryPageViewEx>(); }
// Replace the Query Editor dialog with a cusom one. public void CustomizeEditor(SqlEditorId editor, IWizardCustomization <SqlDataSourceModel> tool) { if (editor == SqlEditorId.Query) { RegisterPages(tool); } }
public new void CustomizeDataSourceWizard(IWizardCustomization <DashboardDataSourceModel> customization) { AddDefaultCustomizations(customization); if (customization.Model.ObjectType != null) { customization.StartPage = typeof(EnterScriptPage <DashboardDataSourceModel>); } var connectionModel = customization.Model as IDataComponentModelWithConnection; bool hasDataConnection = connectionModel?.DataConnection != null; if (DataExtractHelper.IsXafDataExtract(customization.Model)) { customization.StartPage = typeof(ChoiceDataExtractPage <DashboardDataSourceModel>); } else if (customization.Model.DataSchema == null && !hasDataConnection) { customization.StartPage = typeof(XafDashboardChooseDataSourceTypePage <DashboardDataSourceModel>); } customization.RegisterPage <XafDashboardChooseDataSourceTypePage <DashboardDataSourceModel>, XafDashboardChooseDataSourceTypePage <DashboardDataSourceModel> >(); customization.RegisterPageView <IChooseDataSourceTypePageView, XafDashboardChooseDataSourceTypePageView>(); customization.RegisterPage <EnterScriptPage <DashboardDataSourceModel>, EnterScriptPage <DashboardDataSourceModel> >(); customization.RegisterPage <ChoiceDataExtractPage <DashboardDataSourceModel>, ChoiceDataExtractPage <DashboardDataSourceModel> >(); customization.RegisterPageView <IChoiceDataExctractPageView, ChoiceDataExtractPageView>(); customization.RegisterPageView <IEnterScriptPageView, EnterScriptPageView>(); customization.RegisterInstance(WizardParameters); customization.RegisterInstance(ObjectSpace); customization.RegisterInstance(Application); }
private void AddDefaultCustomizations(IWizardCustomization <DashboardDataSourceModel> customization) { customization.RegisterPage <XafDashboardChooseDataSourceTypePage <DashboardDataSourceModel>, XafDashboardChooseDataSourceTypePage <DashboardDataSourceModel> >(); customization.RegisterPageView <IChooseDataSourceTypePageView, XafDashboardChooseDataSourceTypePageView>(); customization.RegisterPage <ChooseXafTypePage <DashboardDataSourceModel>, ChooseXafTypePage <DashboardDataSourceModel> >(); customization.RegisterPageView <IChooseXafTypePageView, DefaultXafChooseTypePageView>(); }
public void CustomizeDataSourceWizard(IWizardCustomization <DashboardDataSourceModel> customization) { //customization.StartPage = typeof(ChooseConnectionPage<DashboardDataSourceForm>); //customization.Model.DataSourceType = DashboardDataSourceType.Xpo; customization.RegisterPage <ConfigureQueryPage <DashboardDataSourceModel>, CustomConfigureQueryPage <DashboardDataSourceModel> >(); //CustomConfigureQueryPage //customization.RegisterPageView<IConfigureQueryPageView, CustomConfigureQueryPageView>(); }
public void CustomizeReportWizard(IWizardCustomization <XtraReportModel> tool) { tool.StartPage = typeof(CustomChooseDataSourceTypePage); tool.RegisterPage <CustomChooseDataSourceTypePage, CustomChooseDataSourceTypePage>(); tool.RegisterPageView <IChooseDataSourceTypePageView, CustomChooseDataSourceTypePageView>(); tool.RegisterPage <CustomQueryPage, CustomQueryPage>(); //tool.RegisterPageView<CustomQueryPage, CustomQueryPage>(); tool.RegisterPageView <IConfigureQueryPageView, ConfigureQueryPageViewEx>(); }
void IWizardCustomizationService.CustomizeDataSourceWizard(IWizardCustomization <XtraReportModel> tool) { if (tool.StartPage == typeof(ChooseDataSourceTypePage <XtraReportModel>)) { tool.Model.DataSourceType = DataSourceType.Xpo; tool.StartPage = typeof(ConnectionPropertiesPage <XtraReportModel>); } CustomizeProviders(tool); }
void IWizardCustomizationService.CustomizeDataSourceWizard(IWizardCustomization <XtraReportModel> tool) { // Set the start page. tool.StartPage = typeof(ChoosePersonsPage2 <DataSourceModel>); // Register the custom page. tool.RegisterPage <ChoosePersonsPage2 <XtraReportModel>, ChoosePersonsPage2 <XtraReportModel> >(); // Register the custom page view. tool.RegisterPageView <IChoosePersonsPageView, ChoosePersonsPageView2>(); }
void IWizardCustomizationService.CustomizeReportWizard(IWizardCustomization <XtraReportModel> tool) { // Redefine the start page. tool.RegisterPage <ChooseReportTypePage <XtraReportModel>, ChoosePersonsPage>(); // Register the custom page. tool.RegisterPage <ChoosePersonsPage2 <XtraReportModel>, ChoosePersonsPage3>(); // Register the custom page view. tool.RegisterPageView <IChoosePersonsPageView, ChoosePersonsPageView2>(); }
public void CustomizeDataSourceWizard(IWizardCustomization <DashboardDataSourceModel> customization) { //customization.RegisterPageView<IConfigureOlapParametersPageView, CustomConfigureOlapParametersPageView>(); //customization.RegisterPageView<IChooseDataSourceTypePageView, DashboardChooseDataSourceTypePagei>(); ////customization.register<IConnectionStorageService, ConnectionStorageService1>(); //customization.RegisterPageView<IConfigureExtractDataSourcePageView, ConfigureExtractDataSourcePageView1>(); customization.RegisterPageView <IConfigureParametersPageView, ConfigureParametersPageView1>(); customization.RegisterPageView <IMultiQueryConfigurePageView, MultiQueryConfigurePageViewEx>(); customization.RegisterPageView <IConfigureQueryPageView, ConfigureQueryPageViewEx>(); //tool.RegisterPage<ConfigureQueryPage<TModel>, MyConfigureQueryPage<TModel>>(); //tool.RegisterPageView<IConfigureQueryPageView, MyConfigureQueryPageView>(); // Register the modified "Select the data source type" wizard page. //customization.RegisterPage<CustomChooseDataSourceTypePage, CustomChooseDataSourceTypePage>(); //ConfigureQueryPageView }
public void CustomizeDataSourceWizard(IWizardCustomization <DataSourceModel> tool) { tool.WizardTitle = "Custom Data Source Wizard"; // Specify the first page for the Data Source Wizard. tool.StartPage = typeof(CustomChooseDataSourceNamePage); // Register the modified "Enter the data source name" wizard page. tool.RegisterPage <CustomChooseDataSourceNamePage, CustomChooseDataSourceNamePage>(); // Register the modified "Select the data source type" wizard page. tool.RegisterPage <CustomChooseDataSourceTypePage, CustomChooseDataSourceTypePage>(); // Restrict the number of available data providers to three predefined items. List <ProviderLookupItem> providers = (List <ProviderLookupItem>)tool.Resolve(typeof(List <ProviderLookupItem>)); providers.Clear(); providers.Add(new ProviderLookupItem("MSSqlServer", "Microsoft SQL Server", new MsSqlServerStrategy())); providers.Add(new ProviderLookupItem("Access97", "Microsoft Access 97", new Access97Strategy())); providers.Add(new ProviderLookupItem("Access2007", "Microsoft Access 2007", new Access2007Strategy())); }
static void CustomizeProviders <TModel>(IWizardCustomization <TModel> tool) where TModel : ISqlDataSourceModel { List <ProviderLookupItem> providers = (List <ProviderLookupItem>)tool.Resolve(typeof(List <ProviderLookupItem>)); providers.RemoveAll((ProviderLookupItem x) => x.ProviderKey != "MSSqlServer"); }
public void CustomizeDataSourceWizard(IWizardCustomization <DashboardDataSourceModel> customization) { customization.RegisterPageView <IConfigureOlapParametersPageView, CustomConfigureOlapParametersPageView>(); }
static void RegisterPages <TModel>(IWizardCustomization <TModel> tool) where TModel : class, ISqlDataSourceModel { tool.RegisterPage <MultiQueryConfigurePage <TModel>, MyConfigureQueryPage <TModel> >(); }
// Register a custom query customization page in the Data SOurce Wizard. public void CustomizeDataSourceWizard(IWizardCustomization <XtraReportModel> tool) { RegisterPages(tool); }
public void CustomizeReportWizard(IWizardCustomization <XtraReportModel> tool) { // Register a custom query customization page in the Report Wizard. tool.RegisterPage <MultiQueryConfigurePage <XtraReportModel>, MyConfigureQueryPageEx <XtraReportModel> >(); }
public void CustomizeDataSourceWizard(IWizardCustomization <DashboardDataSourceModel> customization) { customization.StartPage = typeof(CustomChooseDataSourceNamePage <DashboardDataSourceModel>); customization.RegisterPage <CustomChooseDataSourceNamePage <DashboardDataSourceModel>, CustomChooseDataSourceNamePage <DashboardDataSourceModel> >(); }
public void CustomizeDataSourceWizard(IWizardCustomization <XtraReportModel> tool) { }
private bool IsFederationDataSource(IWizardCustomization <DashboardDataSourceModel> customization) { Type startPageType = customization.StartPage; return(startPageType.IsGenericType && startPageType.GetGenericTypeDefinition() == typeof(ConfigureFederatedQueryPage <>)); }
// Register the custom color scheme storage. void IWizardCustomizationService.CustomizeReportWizard(IWizardCustomization <XtraReportModel> tool) { tool.RegisterType <IColorSchemeStorage, CustomColorSchemeStorage>(); }
void IWizardCustomizationService.CustomizeDataSourceWizard(IWizardCustomization <XtraReportModel> tool) { }