-
Notifications
You must be signed in to change notification settings - Fork 0
/
CustomDrawEventArgs.cs
53 lines (47 loc) · 1.34 KB
/
CustomDrawEventArgs.cs
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
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using DevExpress.Skins;
using DevExpress.Utils.Drawing;
using DevExpress.Utils;
using System.Drawing;
using DevExpress.XtraBars;
using DevExpress.XtraEditors.ViewInfo;
namespace WindowsApplication3 {
public delegate void CustomDrawEventHandler(object sender, CustomDrawEventArgs e);
public class CustomDrawEventArgs : EventArgs
{
GraphicsCache cache;
RadioGroupItemViewInfo itemInfo;
CheckObjectPainter checkPainter;
bool handled;
public CustomDrawEventArgs(GraphicsCache cache, RadioGroupItemViewInfo itemInfo, CheckObjectPainter checkPainter, bool handled)
{
this.cache = cache;
this.itemInfo = itemInfo;
this.checkPainter = checkPainter;
this.handled = handled;
}
public GraphicsCache Cache
{
get { return cache; }
}
public RadioGroupItemViewInfo ItemInfo
{
get { return itemInfo; }
}
public CheckObjectPainter CheckPainter
{
get { return checkPainter; }
}
public bool Handled
{
get { return handled; }
set
{
if (handled != value)
handled = value;
}
}
}
}