-
Notifications
You must be signed in to change notification settings - Fork 0
/
CustomChooseReportTypePage.cs
27 lines (24 loc) · 1.16 KB
/
CustomChooseReportTypePage.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
using System.Collections.Generic;
using DevExpress.DataAccess.Sql;
using DevExpress.DataAccess.Wizard;
using DevExpress.DataAccess.Wizard.Services;
using DevExpress.Entity.ProjectModel;
using DevExpress.XtraReports.Wizards;
using DevExpress.XtraReports.Wizards.Presenters;
using DevExpress.XtraReports.Wizards.Views;
namespace CustomReportWizard {
class CustomChooseReportTypePage : ChooseReportTypePage<XtraReportModel> {
public CustomChooseReportTypePage(IChooseReportTypePageView view, IConnectionStorageService connectionStorageService,
DataSourceTypes dataSourceTypes, IWizardRunnerContext context, ISolutionTypesProvider solutionTypesProvider) :
base(view, connectionStorageService, dataSourceTypes, context, solutionTypesProvider) { }
public override bool MoveNextEnabled {
get { return true; }
}
public override Type GetNextPageType() {
if(View.ReportType == ReportType.Standard || View.ReportType == ReportType.Empty)
return typeof(ChoosePageSettingsPage<CustomReportModel>);
return base.GetNextPageType();
}
}
}