GUI/ParameterForm.resx
author moel.mich
Sat, 31 Dec 2011 17:31:04 +0000
changeset 324 c6ee430d6995
permissions -rw-r--r--
Modified and extended version of the patch v4 by Roland Reinl (see Issue 256). Main differences to the original patch: DeviceIoControl refactorings removed, SmartAttribute is now descriptive only and does not hold any state, report is written as one 80 columns table, sensors are created only for meaningful values and without duplicates (remaining life, temperatures, host writes and reads). Also the current implementation should really preserve all the functionality of the old system. Additionally there is now a simple SMART devices emulation class (DebugSmart) that can be used in place of WindowsSmart for testing with reported data.
moel@63
     1
<?xml version="1.0" encoding="utf-8"?>
moel@63
     2
<root>
moel@63
     3
  <!-- 
moel@63
     4
    Microsoft ResX Schema 
moel@63
     5
    
moel@63
     6
    Version 2.0
moel@63
     7
    
moel@63
     8
    The primary goals of this format is to allow a simple XML format 
moel@63
     9
    that is mostly human readable. The generation and parsing of the 
moel@63
    10
    various data types are done through the TypeConverter classes 
moel@63
    11
    associated with the data types.
moel@63
    12
    
moel@63
    13
    Example:
moel@63
    14
    
moel@63
    15
    ... ado.net/XML headers & schema ...
moel@63
    16
    <resheader name="resmimetype">text/microsoft-resx</resheader>
moel@63
    17
    <resheader name="version">2.0</resheader>
moel@63
    18
    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
moel@63
    19
    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
moel@63
    20
    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
moel@63
    21
    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
moel@63
    22
    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
moel@63
    23
        <value>[base64 mime encoded serialized .NET Framework object]</value>
moel@63
    24
    </data>
moel@63
    25
    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
moel@63
    26
        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
moel@63
    27
        <comment>This is a comment</comment>
moel@63
    28
    </data>
moel@63
    29
                
moel@63
    30
    There are any number of "resheader" rows that contain simple 
moel@63
    31
    name/value pairs.
moel@63
    32
    
moel@63
    33
    Each data row contains a name, and value. The row also contains a 
moel@63
    34
    type or mimetype. Type corresponds to a .NET class that support 
moel@63
    35
    text/value conversion through the TypeConverter architecture. 
moel@63
    36
    Classes that don't support this are serialized and stored with the 
moel@63
    37
    mimetype set.
moel@63
    38
    
moel@63
    39
    The mimetype is used for serialized objects, and tells the 
moel@63
    40
    ResXResourceReader how to depersist the object. This is currently not 
moel@63
    41
    extensible. For a given mimetype the value must be set accordingly:
moel@63
    42
    
moel@63
    43
    Note - application/x-microsoft.net.object.binary.base64 is the format 
moel@63
    44
    that the ResXResourceWriter will generate, however the reader can 
moel@63
    45
    read any of the formats listed below.
moel@63
    46
    
moel@63
    47
    mimetype: application/x-microsoft.net.object.binary.base64
moel@63
    48
    value   : The object must be serialized with 
moel@63
    49
            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
moel@63
    50
            : and then encoded with base64 encoding.
moel@63
    51
    
moel@63
    52
    mimetype: application/x-microsoft.net.object.soap.base64
moel@63
    53
    value   : The object must be serialized with 
moel@63
    54
            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
moel@63
    55
            : and then encoded with base64 encoding.
moel@63
    56
moel@63
    57
    mimetype: application/x-microsoft.net.object.bytearray.base64
moel@63
    58
    value   : The object must be serialized into a byte array 
moel@63
    59
            : using a System.ComponentModel.TypeConverter
moel@63
    60
            : and then encoded with base64 encoding.
moel@63
    61
    -->
moel@63
    62
  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
moel@63
    63
    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
moel@63
    64
    <xsd:element name="root" msdata:IsDataSet="true">
moel@63
    65
      <xsd:complexType>
moel@63
    66
        <xsd:choice maxOccurs="unbounded">
moel@63
    67
          <xsd:element name="metadata">
moel@63
    68
            <xsd:complexType>
moel@63
    69
              <xsd:sequence>
moel@63
    70
                <xsd:element name="value" type="xsd:string" minOccurs="0" />
moel@63
    71
              </xsd:sequence>
moel@63
    72
              <xsd:attribute name="name" use="required" type="xsd:string" />
moel@63
    73
              <xsd:attribute name="type" type="xsd:string" />
moel@63
    74
              <xsd:attribute name="mimetype" type="xsd:string" />
moel@63
    75
              <xsd:attribute ref="xml:space" />
moel@63
    76
            </xsd:complexType>
moel@63
    77
          </xsd:element>
moel@63
    78
          <xsd:element name="assembly">
moel@63
    79
            <xsd:complexType>
moel@63
    80
              <xsd:attribute name="alias" type="xsd:string" />
moel@63
    81
              <xsd:attribute name="name" type="xsd:string" />
moel@63
    82
            </xsd:complexType>
moel@63
    83
          </xsd:element>
moel@63
    84
          <xsd:element name="data">
moel@63
    85
            <xsd:complexType>
moel@63
    86
              <xsd:sequence>
moel@63
    87
                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
moel@63
    88
                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
moel@63
    89
              </xsd:sequence>
moel@63
    90
              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
moel@63
    91
              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
moel@63
    92
              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
moel@63
    93
              <xsd:attribute ref="xml:space" />
moel@63
    94
            </xsd:complexType>
moel@63
    95
          </xsd:element>
moel@63
    96
          <xsd:element name="resheader">
moel@63
    97
            <xsd:complexType>
moel@63
    98
              <xsd:sequence>
moel@63
    99
                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
moel@63
   100
              </xsd:sequence>
moel@63
   101
              <xsd:attribute name="name" type="xsd:string" use="required" />
moel@63
   102
            </xsd:complexType>
moel@63
   103
          </xsd:element>
moel@63
   104
        </xsd:choice>
moel@63
   105
      </xsd:complexType>
moel@63
   106
    </xsd:element>
moel@63
   107
  </xsd:schema>
moel@63
   108
  <resheader name="resmimetype">
moel@63
   109
    <value>text/microsoft-resx</value>
moel@63
   110
  </resheader>
moel@63
   111
  <resheader name="version">
moel@63
   112
    <value>2.0</value>
moel@63
   113
  </resheader>
moel@63
   114
  <resheader name="reader">
moel@63
   115
    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
moel@63
   116
  </resheader>
moel@63
   117
  <resheader name="writer">
moel@63
   118
    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
moel@63
   119
  </resheader>
moel@63
   120
  <metadata name="NameColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
moel@63
   121
    <value>True</value>
moel@63
   122
  </metadata>
moel@63
   123
  <metadata name="Default.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
moel@63
   124
    <value>True</value>
moel@63
   125
  </metadata>
moel@63
   126
  <metadata name="ValueColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
moel@63
   127
    <value>True</value>
moel@63
   128
  </metadata>
moel@63
   129
  <metadata name="bindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
moel@63
   130
    <value>17, 17</value>
moel@63
   131
  </metadata>
moel@63
   132
</root>