-
Notifications
You must be signed in to change notification settings - Fork 0
/
Form1.cs
20 lines (19 loc) · 915 Bytes
/
Form1.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using DevExpress.Snap.Services;
using CustomWizardExample.Wizard;
using DevExpress.Office.Options;
namespace CustomWizardExample
{
public partial class Form1 : DevExpress.XtraBars.Ribbon.RibbonForm
{
public Form1() {
InitializeComponent();
InitializeSnapControl();
}
void InitializeSnapControl() {
snapControl.Text = "Click the \"Add New Data Source\" button to invoke the customized Data Source Wizard that allows you to establish a connection to an XML data file.";
snapControl.Options.DataSourceWizardOptions.DataSourceTypes = DataSourceTypes.Sql | DataSourceTypes.Excel;
snapControl.AddService(typeof(IDataSourceWizardCustomizationService), new DataSourceWizardCustomizationService());
snapControl.AddService(typeof(IDataSourceCreationService), new CustomDataSourceCreationService());
}
}
}