-
Notifications
You must be signed in to change notification settings - Fork 0
/
CustomDrawEventArgs.vb
56 lines (43 loc) · 1.57 KB
/
CustomDrawEventArgs.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
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
Imports System
Imports DevExpress.Utils.Drawing
Imports System.Drawing
Imports DevExpress.XtraEditors.ViewInfo
Namespace WindowsApplication3
Public Delegate Sub CustomDrawEventHandler(ByVal sender As Object, ByVal e As CustomDrawEventArgs)
Public Class CustomDrawEventArgs
Inherits EventArgs
Private cacheField As GraphicsCache
Private itemInfoField As RadioGroupItemViewInfo
Private checkPainterField As CheckObjectPainter
Private handledField As Boolean
Public Sub New(ByVal cache As GraphicsCache, ByVal itemInfo As RadioGroupItemViewInfo, ByVal checkPainter As CheckObjectPainter, ByVal handled As Boolean)
cacheField = cache
itemInfoField = itemInfo
checkPainterField = checkPainter
handledField = handled
End Sub
Public ReadOnly Property Cache As GraphicsCache
Get
Return cacheField
End Get
End Property
Public ReadOnly Property ItemInfo As RadioGroupItemViewInfo
Get
Return itemInfoField
End Get
End Property
Public ReadOnly Property CheckPainter As CheckObjectPainter
Get
Return checkPainterField
End Get
End Property
Public Property Handled As Boolean
Get
Return handledField
End Get
Set(ByVal value As Boolean)
If handledField <> value Then handledField = value
End Set
End Property
End Class
End Namespace