-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMyButtonEdit.vb
More file actions
54 lines (32 loc) · 1.21 KB
/
MyButtonEdit.vb
File metadata and controls
54 lines (32 loc) · 1.21 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Imports System
Imports System.ComponentModel
Imports DevExpress.XtraEditors
Namespace DevExpress.MyControl
Public Class MyButtonEdit
Inherits ButtonEdit
Public Overrides ReadOnly Property EditorTypeName() As String
Get
Return RepositoryItemMyButtonEdit.EDITORTypeName_Renamed
End Get
End Property
<DesignerSerializationVisibility(DesignerSerializationVisibility.Content)> _
Public Shadows ReadOnly Property Properties() As RepositoryItemMyButtonEdit
Get
Return TryCast(MyBase.Properties, RepositoryItemMyButtonEdit)
End Get
End Property
Shared Sub New()
RepositoryItemMyButtonEdit.RegisterMyButtonEdit()
End Sub
Public Sub New()
MyBase.New()
End Sub
Protected Overrides Sub OnEditValueChanged()
MyBase.OnEditValueChanged()
If Properties.Buttons.Count >= 2 Then
Dim str_value As String = TryCast(EditValue, String)
Properties.Buttons(1).Caption = (If(str_value Is Nothing, String.Empty, str_value))
End If
End Sub
End Class
End Namespace