Reformat to comply with Mono coding standards.
[mono.git] / mcs / class / System / System.Diagnostics / Switch.cs
1 //
2 // System.Diagnostics.Switch.cs
3 //
4 // Comments from John R. Hicks <angryjohn69@nc.rr.com> original implementation 
5 // can be found at: /mcs/docs/apidocs/xml/en/System.Diagnostics
6 //
7 // Author:
8 //      John R. Hicks  (angryjohn69@nc.rr.com)
9 //
10 // (C) 2001
11 //
12
13 namespace System.Diagnostics
14 {
15         public abstract class Switch
16         {
17                 private string desc = "";
18                 private string display_name = "";
19                 private int iSwitch;
20
21                 // ================= Constructors ===================
22                 protected Switch(string displayName, string description)
23                 {
24                         display_name = displayName;
25                         desc = description;
26                 }
27
28                 ~Switch()
29                 {
30                 }
31
32                 // ================ Instance Methods ================
33
34                 // ==================== Properties ==================
35
36                 public string Description {
37                         get {return desc;}
38                 }
39
40                 public string DisplayName {
41                         get {return display_name;}
42                 }
43
44                 protected int SwitchSetting {
45                         get {return iSwitch;}
46                         set {
47                                 if(iSwitch != value) {
48                                         iSwitch = value;
49                                         OnSwitchSettingChanged();
50                                 }
51                         }
52                 }
53
54                 [MonoTODO]
55                 protected virtual void OnSwitchSettingChanged()
56                 {
57                         // TODO: implement me
58                 }
59         }
60 }
61