/
MainWindow.xaml.vb
29 lines (24 loc) · 1.12 KB
/
MainWindow.xaml.vb
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
28
29
Imports DevExpress.DataAccess.EntityFramework
Imports DevExpress.Xpf.Core
Imports System.Windows
Namespace EnableEFBrowseButton
''' <summary>
''' Interaction logic for MainWindow.xaml
''' </summary>
Partial Public Class MainWindow
Inherits Window
Public Sub New()
InitializeComponent()
AddHandler EFDataSource.BeforeLoadCustomAssemblyGlobal, AddressOf OnBeforeCustomAssemblyLoad
End Sub
Private Sub OnBeforeCustomAssemblyLoad(ByVal sender As Object, ByVal args As BeforeLoadCustomAssemblyEventArgs)
args.AllowLoading = True
End Sub
Private Sub UseCustomization(ByVal sender As Object, ByVal e As RoutedEventArgs)
CType(New DXTabbedWindow() With {.Content = New UseEFOptionsAndCustomization()}, DXTabbedWindow).ShowDialog()
End Sub
Private Sub UseDataSourceWizardSettings(ByVal sender As Object, ByVal e As RoutedEventArgs)
CType(New DXTabbedWindow() With {.Content = New UseDataSourceWizardSettings()}, DXTabbedWindow).ShowDialog()
End Sub
End Class
End Namespace