-
Notifications
You must be signed in to change notification settings - Fork 3
/
Button.cs
42 lines (39 loc) · 1008 Bytes
/
Button.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
using System;
using System.Windows.Forms;
namespace SourceGrid.Cells.Virtual
{
/// <summary>
/// A cell that rappresent a button
/// </summary>
public abstract class Button : CellVirtual
{
/// <summary>
/// Constructor.
/// </summary>
public Button()
{
View = Views.Button.Default;
AddController(Controllers.MouseInvalidate.Default);
//NOTE: I don't add the Unselectable controller because the Execute event of the Button it is not fired when the cell is not selected
}
}
}
namespace SourceGrid.Cells
{
/// <summary>
/// A cell that rappresent a button
/// </summary>
public class Button : Cell
{
/// <summary>
/// Constructor
/// </summary>
/// <param name="p_Value"></param>
public Button(object p_Value):base(p_Value)
{
View = Views.Button.Default;
AddController(Controllers.MouseInvalidate.Default);
//NOTE: I don't add the Unselectable controller because the Execute event of the Button it is not fired when the cell is not selected
}
}
}