-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMyButtonEdit.cs
More file actions
62 lines (41 loc) · 1.13 KB
/
MyButtonEdit.cs
File metadata and controls
62 lines (41 loc) · 1.13 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
50
51
52
53
54
55
56
57
using System;
using System.ComponentModel;
using DevExpress.XtraEditors;
namespace DevExpress.MyControl
{
public class MyButtonEdit : ButtonEdit
{
public override string EditorTypeName
{
get
{
return RepositoryItemMyButtonEdit.EDITORTypeName;
}
}
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public new RepositoryItemMyButtonEdit Properties
{
get
{
return base.Properties as RepositoryItemMyButtonEdit;
}
}
static MyButtonEdit()
{
RepositoryItemMyButtonEdit.RegisterMyButtonEdit();
}
public MyButtonEdit()
: base()
{
}
protected override void OnEditValueChanged()
{
base.OnEditValueChanged();
if (Properties.Buttons.Count >= 2)
{
string str_value = EditValue as string;
Properties.Buttons[1].Caption = (str_value == null ? string.Empty : str_value);
}
}
}
}