GUI/CrashForm.Designer.cs
author moel.mich
Sat, 31 Dec 2011 17:31:04 +0000
changeset 324 c6ee430d6995
child 344 3145aadca3d2
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
/*
moel@150
     2
  
moel@150
     3
  Version: MPL 1.1/GPL 2.0/LGPL 2.1
moel@150
     4
moel@150
     5
  The contents of this file are subject to the Mozilla Public License Version
moel@150
     6
  1.1 (the "License"); you may not use this file except in compliance with
moel@150
     7
  the License. You may obtain a copy of the License at
moel@150
     8
 
moel@150
     9
  http://www.mozilla.org/MPL/
moel@150
    10
moel@150
    11
  Software distributed under the License is distributed on an "AS IS" basis,
moel@150
    12
  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
moel@150
    13
  for the specific language governing rights and limitations under the License.
moel@150
    14
moel@150
    15
  The Original Code is the Open Hardware Monitor code.
moel@150
    16
moel@150
    17
  The Initial Developer of the Original Code is 
moel@150
    18
  Michael Möller <m.moeller@gmx.ch>.
moel@150
    19
  Portions created by the Initial Developer are Copyright (C) 2009-2010
moel@150
    20
  the Initial Developer. All Rights Reserved.
moel@150
    21
moel@150
    22
  Contributor(s):
moel@150
    23
moel@150
    24
  Alternatively, the contents of this file may be used under the terms of
moel@150
    25
  either the GNU General Public License Version 2 or later (the "GPL"), or
moel@150
    26
  the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
moel@150
    27
  in which case the provisions of the GPL or the LGPL are applicable instead
moel@150
    28
  of those above. If you wish to allow use of your version of this file only
moel@150
    29
  under the terms of either the GPL or the LGPL, and not to allow others to
moel@150
    30
  use your version of this file under the terms of the MPL, indicate your
moel@150
    31
  decision by deleting the provisions above and replace them with the notice
moel@150
    32
  and other provisions required by the GPL or the LGPL. If you do not delete
moel@150
    33
  the provisions above, a recipient may use your version of this file under
moel@150
    34
  the terms of any one of the MPL, the GPL or the LGPL.
moel@150
    35
 
moel@150
    36
*/
moel@150
    37
moel@150
    38
namespace OpenHardwareMonitor.GUI {
moel@150
    39
  partial class CrashForm {
moel@150
    40
    /// <summary>
moel@150
    41
    /// Required designer variable.
moel@150
    42
    /// </summary>
moel@150
    43
    private System.ComponentModel.IContainer components = null;
moel@150
    44
moel@150
    45
    /// <summary>
moel@150
    46
    /// Clean up any resources being used.
moel@150
    47
    /// </summary>
moel@150
    48
    /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
moel@150
    49
    protected override void Dispose(bool disposing) {
moel@150
    50
      if (disposing && (components != null)) {
moel@150
    51
        components.Dispose();
moel@150
    52
      }
moel@150
    53
      base.Dispose(disposing);
moel@150
    54
    }
moel@150
    55
moel@150
    56
    #region Windows Form Designer generated code
moel@150
    57
moel@150
    58
    /// <summary>
moel@150
    59
    /// Required method for Designer support - do not modify
moel@150
    60
    /// the contents of this method with the code editor.
moel@150
    61
    /// </summary>
moel@150
    62
    private void InitializeComponent() {
moel@150
    63
      this.sendButton = new System.Windows.Forms.Button();
moel@150
    64
      this.exitButton = new System.Windows.Forms.Button();
moel@150
    65
      this.commentTextBox = new System.Windows.Forms.TextBox();
moel@150
    66
      this.titleLabel = new System.Windows.Forms.Label();
moel@150
    67
      this.label3 = new System.Windows.Forms.Label();
moel@150
    68
      this.label1 = new System.Windows.Forms.Label();
moel@150
    69
      this.commentPanel = new System.Windows.Forms.Panel();
moel@150
    70
      this.reportPanel = new System.Windows.Forms.Panel();
moel@150
    71
      this.reportTextBox = new System.Windows.Forms.TextBox();
moel@150
    72
      this.textBox1 = new System.Windows.Forms.TextBox();
moel@150
    73
      this.label2 = new System.Windows.Forms.Label();
moel@150
    74
      this.emailTextBox = new System.Windows.Forms.TextBox();
moel@150
    75
      this.commentPanel.SuspendLayout();
moel@150
    76
      this.reportPanel.SuspendLayout();
moel@150
    77
      this.SuspendLayout();
moel@150
    78
      // 
moel@150
    79
      // sendButton
moel@150
    80
      // 
moel@150
    81
      this.sendButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
moel@150
    82
      this.sendButton.Location = new System.Drawing.Point(449, 469);
moel@150
    83
      this.sendButton.Name = "sendButton";
moel@150
    84
      this.sendButton.Size = new System.Drawing.Size(75, 23);
moel@150
    85
      this.sendButton.TabIndex = 2;
moel@150
    86
      this.sendButton.Text = "Send";
moel@150
    87
      this.sendButton.UseVisualStyleBackColor = true;
moel@150
    88
      this.sendButton.Click += new System.EventHandler(this.sendButton_Click);
moel@150
    89
      // 
moel@150
    90
      // exitButton
moel@150
    91
      // 
moel@150
    92
      this.exitButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
moel@150
    93
      this.exitButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
moel@150
    94
      this.exitButton.Location = new System.Drawing.Point(530, 469);
moel@150
    95
      this.exitButton.Name = "exitButton";
moel@150
    96
      this.exitButton.Size = new System.Drawing.Size(75, 23);
moel@150
    97
      this.exitButton.TabIndex = 3;
moel@150
    98
      this.exitButton.Text = "Exit";
moel@150
    99
      this.exitButton.UseVisualStyleBackColor = true;
moel@150
   100
      // 
moel@150
   101
      // commentTextBox
moel@150
   102
      // 
moel@150
   103
      this.commentTextBox.AcceptsReturn = true;
moel@150
   104
      this.commentTextBox.BorderStyle = System.Windows.Forms.BorderStyle.None;
moel@150
   105
      this.commentTextBox.Dock = System.Windows.Forms.DockStyle.Fill;
moel@150
   106
      this.commentTextBox.Location = new System.Drawing.Point(4, 4);
moel@150
   107
      this.commentTextBox.Multiline = true;
moel@150
   108
      this.commentTextBox.Name = "commentTextBox";
moel@150
   109
      this.commentTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
moel@150
   110
      this.commentTextBox.Size = new System.Drawing.Size(586, 77);
moel@150
   111
      this.commentTextBox.TabIndex = 1;
moel@150
   112
      // 
moel@150
   113
      // titleLabel
moel@150
   114
      // 
moel@150
   115
      this.titleLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
moel@150
   116
                  | System.Windows.Forms.AnchorStyles.Right)));
moel@150
   117
      this.titleLabel.BackColor = System.Drawing.SystemColors.Window;
moel@150
   118
      this.titleLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
moel@150
   119
      this.titleLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
moel@150
   120
      this.titleLabel.Location = new System.Drawing.Point(-1, -1);
moel@150
   121
      this.titleLabel.Name = "titleLabel";
moel@150
   122
      this.titleLabel.Padding = new System.Windows.Forms.Padding(10);
moel@150
   123
      this.titleLabel.Size = new System.Drawing.Size(619, 52);
moel@150
   124
      this.titleLabel.TabIndex = 4;
moel@150
   125
      this.titleLabel.Text = "Open Hardware Monitor has encountered a problem and needs to close. We are sorry " +
moel@150
   126
          "for the inconvenience.";
moel@150
   127
      // 
moel@150
   128
      // label3
moel@150
   129
      // 
moel@150
   130
      this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
moel@150
   131
                  | System.Windows.Forms.AnchorStyles.Right)));
moel@150
   132
      this.label3.AutoEllipsis = true;
moel@150
   133
      this.label3.AutoSize = true;
moel@150
   134
      this.label3.Location = new System.Drawing.Point(9, 63);
moel@150
   135
      this.label3.Margin = new System.Windows.Forms.Padding(3, 12, 3, 8);
moel@150
   136
      this.label3.Name = "label3";
moel@150
   137
      this.label3.Size = new System.Drawing.Size(571, 13);
moel@150
   138
      this.label3.TabIndex = 5;
moel@150
   139
      this.label3.Text = "To help diagnose and fix the problem, you can send a crash report. The following " +
moel@150
   140
          "report has been created automatically:";
moel@150
   141
      // 
moel@150
   142
      // label1
moel@150
   143
      // 
moel@150
   144
      this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
moel@150
   145
                  | System.Windows.Forms.AnchorStyles.Right)));
moel@150
   146
      this.label1.AutoEllipsis = true;
moel@150
   147
      this.label1.AutoSize = true;
moel@150
   148
      this.label1.Location = new System.Drawing.Point(9, 347);
moel@150
   149
      this.label1.Margin = new System.Windows.Forms.Padding(3, 12, 3, 8);
moel@150
   150
      this.label1.Name = "label1";
moel@150
   151
      this.label1.Size = new System.Drawing.Size(279, 13);
moel@150
   152
      this.label1.TabIndex = 6;
moel@150
   153
      this.label1.Text = "You can add additional information to the report (optional):";
moel@150
   154
      // 
moel@150
   155
      // commentPanel
moel@150
   156
      // 
moel@150
   157
      this.commentPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
moel@150
   158
                  | System.Windows.Forms.AnchorStyles.Right)));
moel@150
   159
      this.commentPanel.BackColor = System.Drawing.SystemColors.Window;
moel@150
   160
      this.commentPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
moel@150
   161
      this.commentPanel.Controls.Add(this.commentTextBox);
moel@150
   162
      this.commentPanel.Location = new System.Drawing.Point(12, 371);
moel@150
   163
      this.commentPanel.Margin = new System.Windows.Forms.Padding(3, 3, 3, 8);
moel@150
   164
      this.commentPanel.Name = "commentPanel";
moel@150
   165
      this.commentPanel.Padding = new System.Windows.Forms.Padding(4, 4, 1, 4);
moel@150
   166
      this.commentPanel.Size = new System.Drawing.Size(593, 87);
moel@150
   167
      this.commentPanel.TabIndex = 1;
moel@150
   168
      this.commentPanel.TabStop = true;
moel@150
   169
      // 
moel@150
   170
      // reportPanel
moel@150
   171
      // 
moel@150
   172
      this.reportPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
moel@150
   173
                  | System.Windows.Forms.AnchorStyles.Left)
moel@150
   174
                  | System.Windows.Forms.AnchorStyles.Right)));
moel@150
   175
      this.reportPanel.BackColor = System.Drawing.SystemColors.Window;
moel@150
   176
      this.reportPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
moel@150
   177
      this.reportPanel.Controls.Add(this.reportTextBox);
moel@150
   178
      this.reportPanel.Controls.Add(this.textBox1);
moel@150
   179
      this.reportPanel.Location = new System.Drawing.Point(12, 87);
moel@150
   180
      this.reportPanel.Name = "reportPanel";
moel@150
   181
      this.reportPanel.Padding = new System.Windows.Forms.Padding(4, 4, 1, 4);
moel@150
   182
      this.reportPanel.Size = new System.Drawing.Size(593, 212);
moel@150
   183
      this.reportPanel.TabIndex = 8;
moel@150
   184
      // 
moel@150
   185
      // reportTextBox
moel@150
   186
      // 
moel@150
   187
      this.reportTextBox.BackColor = System.Drawing.SystemColors.Window;
moel@150
   188
      this.reportTextBox.BorderStyle = System.Windows.Forms.BorderStyle.None;
moel@150
   189
      this.reportTextBox.Dock = System.Windows.Forms.DockStyle.Fill;
moel@150
   190
      this.reportTextBox.Location = new System.Drawing.Point(4, 4);
moel@150
   191
      this.reportTextBox.Multiline = true;
moel@150
   192
      this.reportTextBox.Name = "reportTextBox";
moel@150
   193
      this.reportTextBox.ReadOnly = true;
moel@150
   194
      this.reportTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
moel@150
   195
      this.reportTextBox.Size = new System.Drawing.Size(586, 202);
moel@150
   196
      this.reportTextBox.TabIndex = 9;
moel@150
   197
      this.reportTextBox.TabStop = false;
moel@150
   198
      // 
moel@150
   199
      // textBox1
moel@150
   200
      // 
moel@150
   201
      this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
moel@150
   202
      this.textBox1.Dock = System.Windows.Forms.DockStyle.Fill;
moel@150
   203
      this.textBox1.Location = new System.Drawing.Point(4, 4);
moel@150
   204
      this.textBox1.Multiline = true;
moel@150
   205
      this.textBox1.Name = "textBox1";
moel@150
   206
      this.textBox1.Size = new System.Drawing.Size(586, 202);
moel@150
   207
      this.textBox1.TabIndex = 2;
moel@150
   208
      // 
moel@150
   209
      // label2
moel@150
   210
      // 
moel@150
   211
      this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
moel@150
   212
                  | System.Windows.Forms.AnchorStyles.Right)));
moel@150
   213
      this.label2.AutoEllipsis = true;
moel@150
   214
      this.label2.AutoSize = true;
moel@150
   215
      this.label2.Location = new System.Drawing.Point(9, 318);
moel@150
   216
      this.label2.Margin = new System.Windows.Forms.Padding(3, 12, 3, 8);
moel@150
   217
      this.label2.Name = "label2";
moel@150
   218
      this.label2.Size = new System.Drawing.Size(171, 13);
moel@150
   219
      this.label2.TabIndex = 9;
moel@150
   220
      this.label2.Text = "Enter your email address (optional):";
moel@150
   221
      // 
moel@150
   222
      // emailTextBox
moel@150
   223
      // 
moel@150
   224
      this.emailTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
moel@150
   225
                  | System.Windows.Forms.AnchorStyles.Right)));
moel@150
   226
      this.emailTextBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
moel@150
   227
      this.emailTextBox.Location = new System.Drawing.Point(188, 315);
moel@150
   228
      this.emailTextBox.Name = "emailTextBox";
moel@150
   229
      this.emailTextBox.Size = new System.Drawing.Size(417, 20);
moel@150
   230
      this.emailTextBox.TabIndex = 0;
moel@150
   231
      // 
moel@150
   232
      // CrashReportForm
moel@150
   233
      // 
moel@150
   234
      this.AcceptButton = this.sendButton;
moel@150
   235
      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
moel@150
   236
      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
moel@150
   237
      this.CancelButton = this.exitButton;
moel@150
   238
      this.ClientSize = new System.Drawing.Size(617, 504);
moel@150
   239
      this.ControlBox = false;
moel@150
   240
      this.Controls.Add(this.emailTextBox);
moel@150
   241
      this.Controls.Add(this.label2);
moel@150
   242
      this.Controls.Add(this.reportPanel);
moel@150
   243
      this.Controls.Add(this.commentPanel);
moel@150
   244
      this.Controls.Add(this.label1);
moel@150
   245
      this.Controls.Add(this.label3);
moel@150
   246
      this.Controls.Add(this.titleLabel);
moel@150
   247
      this.Controls.Add(this.exitButton);
moel@150
   248
      this.Controls.Add(this.sendButton);
moel@150
   249
      this.MaximizeBox = false;
moel@150
   250
      this.MinimizeBox = false;
moel@150
   251
      this.Name = "CrashReportForm";
moel@150
   252
      this.ShowIcon = false;
moel@150
   253
      this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
moel@150
   254
      this.Text = "Open Hardware Monitor";
moel@150
   255
      this.commentPanel.ResumeLayout(false);
moel@150
   256
      this.commentPanel.PerformLayout();
moel@150
   257
      this.reportPanel.ResumeLayout(false);
moel@150
   258
      this.reportPanel.PerformLayout();
moel@150
   259
      this.ResumeLayout(false);
moel@150
   260
      this.PerformLayout();
moel@150
   261
moel@150
   262
    }
moel@150
   263
moel@150
   264
    #endregion
moel@150
   265
moel@150
   266
    private System.Windows.Forms.Button sendButton;
moel@150
   267
    private System.Windows.Forms.Button exitButton;
moel@150
   268
    private System.Windows.Forms.TextBox commentTextBox;
moel@150
   269
    private System.Windows.Forms.Label titleLabel;
moel@150
   270
    private System.Windows.Forms.Label label3;
moel@150
   271
    private System.Windows.Forms.Label label1;
moel@150
   272
    private System.Windows.Forms.Panel commentPanel;
moel@150
   273
    private System.Windows.Forms.Panel reportPanel;
moel@150
   274
    private System.Windows.Forms.TextBox reportTextBox;
moel@150
   275
    private System.Windows.Forms.TextBox textBox1;
moel@150
   276
    private System.Windows.Forms.Label label2;
moel@150
   277
    private System.Windows.Forms.TextBox emailTextBox;
moel@150
   278
  }
moel@150
   279
}