-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathForm1.vb
More file actions
30 lines (24 loc) · 1.07 KB
/
Form1.vb
File metadata and controls
30 lines (24 loc) · 1.07 KB
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
30
Imports DevExpress.XtraEditors
Imports DevExpress.XtraEditors.Repository
Imports DevExpress.XtraVerticalGrid.Rows
Imports System
Namespace T415077
Public Partial Class Form1
Inherits XtraForm
Public Sub New()
InitializeComponent()
End Sub
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim file As Data.File = New Data.File() With {.Path = "C:\Home", .Path2 = "C:\Public"}
propertyGridControl1.SelectedObject = file
End Sub
Private Sub edit_ButtonClick(ByVal sender As Object, ByVal e As DevExpress.XtraEditors.Controls.ButtonPressedEventArgs)
openFileDialog1.ShowDialog()
End Sub
Private Sub Form1_Shown(ByVal sender As Object, ByVal e As EventArgs)
Dim edit As RepositoryItemButtonEdit = New RepositoryItemButtonEdit()
AddHandler edit.ButtonClick, AddressOf edit_ButtonClick
TryCast(propertyGridControl1.Rows(0), CategoryRow).ChildRows("rowPath2").Properties.RowEdit = edit
End Sub
End Class
End Namespace