Hardware/Computer.cs
changeset 166 fa9dfbfc4145
parent 165 813d8bc3192f
child 167 b7cc9d09aefe
     1.1 --- a/Hardware/Computer.cs	Sun Aug 08 13:57:26 2010 +0000
     1.2 +++ b/Hardware/Computer.cs	Thu Aug 12 20:53:27 2010 +0000
     1.3 @@ -196,7 +196,7 @@
     1.4  
     1.5      public string GetReport() {
     1.6  
     1.7 -      using (StringWriter w = new StringWriter()) {
     1.8 +      using (StringWriter w = new StringWriter(CultureInfo.InvariantCulture)) {
     1.9  
    1.10          w.WriteLine();
    1.11          w.WriteLine("Open Hardware Monitor Report");
    1.12 @@ -266,7 +266,8 @@
    1.13      public event HardwareEventHandler HardwareRemoved;
    1.14  
    1.15      public void Accept(IVisitor visitor) {
    1.16 -      visitor.VisitComputer(this);
    1.17 +      if (visitor != null)
    1.18 +        visitor.VisitComputer(this);
    1.19      }
    1.20  
    1.21      public void Traverse(IVisitor visitor) {
    1.22 @@ -281,9 +282,9 @@
    1.23          return false;
    1.24        }
    1.25  
    1.26 -      public void Set(string name, string value) { }
    1.27 +      public void SetValue(string name, string value) { }
    1.28  
    1.29 -      public string Get(string name, string value) {
    1.30 +      public string GetValue(string name, string value) {
    1.31          return value;
    1.32        }
    1.33