Spring – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | using System; |
2 | using System.Windows.Forms; |
||
3 | using System.Xml.Serialization; |
||
4 | using SpringCombos.Properties; |
||
5 | |||
6 | namespace SpringCombos |
||
7 | { |
||
8 | [Serializable, XmlRoot(ElementName = "MouseCombo")] |
||
9 | public class MouseCombo : Combo |
||
10 | { |
||
11 | #region Public Enums, Properties and Fields |
||
12 | |||
13 | [XmlElement(ElementName = "MouseButton")] |
||
14 | public MouseButtons Button { get; set; } |
||
15 | |||
16 | [XmlElement(ElementName = "Clicks")] |
||
17 | public int Clicks { get; set; } |
||
18 | |||
19 | [XmlElement(ElementName = "X")] |
||
20 | public double X { get; set; } |
||
21 | |||
22 | [XmlElement(ElementName = "Y")] |
||
23 | public double Y { get; set; } |
||
24 | |||
25 | [XmlElement(ElementName = "Delta")] |
||
26 | public int Delta { get; set; } |
||
27 | |||
28 | [XmlElement(ElementName = "ComboAction")] |
||
29 | public ComboAction ComboAction { get; set; } |
||
30 | |||
31 | #endregion |
||
32 | |||
33 | #region Constructors, Destructors and Finalizers |
||
34 | |||
35 | [UsedImplicitly] |
||
36 | public MouseCombo() |
||
37 | { |
||
38 | } |
||
39 | |||
40 | private MouseCombo(MouseButtons button, int clicks, int x, int y, int delta) |
||
41 | { |
||
42 | Button = button; |
||
43 | Clicks = clicks; |
||
44 | X = x; |
||
45 | Y = y; |
||
46 | Delta = delta; |
||
47 | } |
||
48 | |||
49 | public MouseCombo(MouseEventArgs args, ComboAction comboAction) : this(args.Button, |
||
50 | args.Clicks, |
||
51 | args.X, |
||
52 | args.Y, |
||
53 | args.Delta) => |
||
54 | ComboAction = comboAction; |
||
55 | |||
56 | #endregion |
||
57 | } |
||
58 | } |