Spring – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | using System.ComponentModel; |
2 | using System.Runtime.CompilerServices; |
||
3 | using System.Xml.Serialization; |
||
4 | using Configuration.Properties; |
||
5 | |||
6 | namespace Configuration |
||
7 | { |
||
8 | [XmlRoot(ElementName = "Discharge")] |
||
9 | public class Discharge : INotifyPropertyChanged |
||
10 | { |
||
11 | #region Public Events & Delegates |
||
12 | |||
13 | public event PropertyChangedEventHandler PropertyChanged; |
||
14 | |||
15 | #endregion |
||
16 | |||
17 | #region Public Enums, Properties and Fields |
||
18 | |||
19 | [XmlElement(ElementName = "RelativeMouseMovement")] |
||
20 | public bool UseRelativeMouseMovement |
||
21 | { |
||
22 | get => _relativeMouseMovement; |
||
23 | set |
||
24 | { |
||
25 | if (value == _relativeMouseMovement) |
||
26 | { |
||
27 | return; |
||
28 | } |
||
29 | |||
30 | _relativeMouseMovement = value; |
||
31 | OnPropertyChanged(); |
||
32 | } |
||
33 | } |
||
34 | |||
35 | #endregion |
||
36 | |||
37 | #region Private Delegates, Events, Enums, Properties, Indexers and Fields |
||
38 | |||
39 | private bool _relativeMouseMovement; |
||
40 | |||
41 | #endregion |
||
42 | |||
43 | #region Constructors, Destructors and Finalizers |
||
44 | |||
45 | [UsedImplicitly] |
||
46 | public Discharge() |
||
47 | { |
||
48 | } |
||
49 | |||
50 | #endregion |
||
51 | |||
52 | #region Private Methods |
||
53 | |||
54 | protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) |
||
55 | { |
||
56 | PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); |
||
57 | } |
||
58 | |||
59 | #endregion |
||
60 | } |
||
61 | } |