Spring – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | using System; |
2 | using System.Collections.Generic; |
||
3 | using System.Xml.Schema; |
||
4 | using System.Xml.Serialization; |
||
5 | using SpringCombos.Properties; |
||
6 | |||
7 | namespace SpringCombos |
||
8 | { |
||
9 | [Serializable, XmlRoot(ElementName = "SpringCombos"), XmlInclude(typeof(Combo)), |
||
10 | XmlInclude(typeof(MouseCombo)), XmlInclude(typeof(KeyboardCombo)), XmlInclude(typeof(PauseCombo))] |
||
11 | public class Combos |
||
12 | { |
||
13 | #region Public Enums, Properties and Fields |
||
14 | |||
15 | [XmlAttribute("noNamespaceSchemaLocation", Namespace = XmlSchema.InstanceNamespace)] |
||
16 | public string NoNamespaceSchemaLocation |
||
17 | { |
||
18 | get => "SpringCombos.xsd"; |
||
19 | set { } |
||
20 | } |
||
21 | |||
22 | [XmlElement(ElementName = "SpringCombo")] |
||
23 | public List<Combo> Combo { get; set; } = new List<Combo>(); |
||
24 | |||
25 | [XmlElement(ElementName = "SpringComboRepeat")] |
||
26 | public int ComboRepeat |
||
27 | { |
||
28 | get => _springComboRepeat; |
||
29 | set => _springComboRepeat = value; |
||
30 | } |
||
31 | |||
32 | #endregion |
||
33 | |||
34 | #region Private Delegates, Events, Enums, Properties, Indexers and Fields |
||
35 | |||
36 | private int _springComboRepeat; |
||
37 | |||
38 | #endregion |
||
39 | |||
40 | #region Constructors, Destructors and Finalizers |
||
41 | |||
42 | [UsedImplicitly] |
||
43 | public Combos() |
||
44 | { |
||
45 | } |
||
46 | |||
47 | public Combos(IEnumerable<Combo> sequence) |
||
48 | { |
||
49 | Combo.AddRange(sequence); |
||
50 | } |
||
51 | |||
52 | public Combos(IEnumerable<Combo> sequence, int chargeRepeat) : this(sequence) => |
||
53 | _springComboRepeat = chargeRepeat; |
||
54 | |||
55 | #endregion |
||
56 | } |
||
57 | } |