GUI/ReportForm.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@150
     1
<?xml version="1.0" encoding="utf-8"?>
moel@150
     2
<root>
moel@150
     3
  <!-- 
moel@150
     4
    Microsoft ResX Schema 
moel@150
     5
    
moel@150
     6
    Version 2.0
moel@150
     7
    
moel@150
     8
    The primary goals of this format is to allow a simple XML format 
moel@150
     9
    that is mostly human readable. The generation and parsing of the 
moel@150
    10
    various data types are done through the TypeConverter classes 
moel@150
    11
    associated with the data types.
moel@150
    12
    
moel@150
    13
    Example:
moel@150
    14
    
moel@150
    15
    ... ado.net/XML headers & schema ...
moel@150
    16
    <resheader name="resmimetype">text/microsoft-resx</resheader>
moel@150
    17
    <resheader name="version">2.0</resheader>
moel@150
    18
    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
moel@150
    19
    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
moel@150
    20
    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
moel@150
    21
    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
moel@150
    22
    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
moel@150
    23
        <value>[base64 mime encoded serialized .NET Framework object]</value>
moel@150
    24
    </data>
moel@150
    25
    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
moel@150
    26
        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
moel@150
    27
        <comment>This is a comment</comment>
moel@150
    28
    </data>
moel@150
    29
                
moel@150
    30
    There are any number of "resheader" rows that contain simple 
moel@150
    31
    name/value pairs.
moel@150
    32
    
moel@150
    33
    Each data row contains a name, and value. The row also contains a 
moel@150
    34
    type or mimetype. Type corresponds to a .NET class that support 
moel@150
    35
    text/value conversion through the TypeConverter architecture. 
moel@150
    36
    Classes that don't support this are serialized and stored with the 
moel@150
    37
    mimetype set.
moel@150
    38
    
moel@150
    39
    The mimetype is used for serialized objects, and tells the 
moel@150
    40
    ResXResourceReader how to depersist the object. This is currently not 
moel@150
    41
    extensible. For a given mimetype the value must be set accordingly:
moel@150
    42
    
moel@150
    43
    Note - application/x-microsoft.net.object.binary.base64 is the format 
moel@150
    44
    that the ResXResourceWriter will generate, however the reader can 
moel@150
    45
    read any of the formats listed below.
moel@150
    46
    
moel@150
    47
    mimetype: application/x-microsoft.net.object.binary.base64
moel@150
    48
    value   : The object must be serialized with 
moel@150
    49
            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
moel@150
    50
            : and then encoded with base64 encoding.
moel@150
    51
    
moel@150
    52
    mimetype: application/x-microsoft.net.object.soap.base64
moel@150
    53
    value   : The object must be serialized with 
moel@150
    54
            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
moel@150
    55
            : and then encoded with base64 encoding.
moel@150
    56
moel@150
    57
    mimetype: application/x-microsoft.net.object.bytearray.base64
moel@150
    58
    value   : The object must be serialized into a byte array 
moel@150
    59
            : using a System.ComponentModel.TypeConverter
moel@150
    60
            : and then encoded with base64 encoding.
moel@150
    61
    -->
moel@150
    62
  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
moel@150
    63
    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
moel@150
    64
    <xsd:element name="root" msdata:IsDataSet="true">
moel@150
    65
      <xsd:complexType>
moel@150
    66
        <xsd:choice maxOccurs="unbounded">
moel@150
    67
          <xsd:element name="metadata">
moel@150
    68
            <xsd:complexType>
moel@150
    69
              <xsd:sequence>
moel@150
    70
                <xsd:element name="value" type="xsd:string" minOccurs="0" />
moel@150
    71
              </xsd:sequence>
moel@150
    72
              <xsd:attribute name="name" use="required" type="xsd:string" />
moel@150
    73
              <xsd:attribute name="type" type="xsd:string" />
moel@150
    74
              <xsd:attribute name="mimetype" type="xsd:string" />
moel@150
    75
              <xsd:attribute ref="xml:space" />
moel@150
    76
            </xsd:complexType>
moel@150
    77
          </xsd:element>
moel@150
    78
          <xsd:element name="assembly">
moel@150
    79
            <xsd:complexType>
moel@150
    80
              <xsd:attribute name="alias" type="xsd:string" />
moel@150
    81
              <xsd:attribute name="name" type="xsd:string" />
moel@150
    82
            </xsd:complexType>
moel@150
    83
          </xsd:element>
moel@150
    84
          <xsd:element name="data">
moel@150
    85
            <xsd:complexType>
moel@150
    86
              <xsd:sequence>
moel@150
    87
                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
moel@150
    88
                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
moel@150
    89
              </xsd:sequence>
moel@150
    90
              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
moel@150
    91
              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
moel@150
    92
              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
moel@150
    93
              <xsd:attribute ref="xml:space" />
moel@150
    94
            </xsd:complexType>
moel@150
    95
          </xsd:element>
moel@150
    96
          <xsd:element name="resheader">
moel@150
    97
            <xsd:complexType>
moel@150
    98
              <xsd:sequence>
moel@150
    99
                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
moel@150
   100
              </xsd:sequence>
moel@150
   101
              <xsd:attribute name="name" type="xsd:string" use="required" />
moel@150
   102
            </xsd:complexType>
moel@150
   103
          </xsd:element>
moel@150
   104
        </xsd:choice>
moel@150
   105
      </xsd:complexType>
moel@150
   106
    </xsd:element>
moel@150
   107
  </xsd:schema>
moel@150
   108
  <resheader name="resmimetype">
moel@150
   109
    <value>text/microsoft-resx</value>
moel@150
   110
  </resheader>
moel@150
   111
  <resheader name="version">
moel@150
   112
    <value>2.0</value>
moel@150
   113
  </resheader>
moel@150
   114
  <resheader name="reader">
moel@150
   115
    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
moel@150
   116
  </resheader>
moel@150
   117
  <resheader name="writer">
moel@150
   118
    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
moel@150
   119
  </resheader>
moel@150
   120
</root>