GUI/ParameterForm.Designer.cs
author moel.mich
Sat, 25 Jun 2011 14:46:28 +0000
changeset 304 16a86362c2ca
parent 74 20c1378e0ede
child 344 3145aadca3d2
permissions -rw-r--r--
Changed the maximum buffer size for double buffering of controls that isn't disposed after each draw call to the size of the screen. This should reduce the memory allocation and disposing on each sensor update. Also page faults are no longer increasing with this change.
moel@86
     1
/*
moel@86
     2
  
moel@86
     3
  Version: MPL 1.1/GPL 2.0/LGPL 2.1
moel@86
     4
moel@86
     5
  The contents of this file are subject to the Mozilla Public License Version
moel@86
     6
  1.1 (the "License"); you may not use this file except in compliance with
moel@86
     7
  the License. You may obtain a copy of the License at
moel@86
     8
 
moel@86
     9
  http://www.mozilla.org/MPL/
moel@86
    10
moel@86
    11
  Software distributed under the License is distributed on an "AS IS" basis,
moel@86
    12
  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
moel@86
    13
  for the specific language governing rights and limitations under the License.
moel@86
    14
moel@86
    15
  The Original Code is the Open Hardware Monitor code.
moel@86
    16
moel@86
    17
  The Initial Developer of the Original Code is 
moel@86
    18
  Michael Möller <m.moeller@gmx.ch>.
moel@86
    19
  Portions created by the Initial Developer are Copyright (C) 2009-2010
moel@86
    20
  the Initial Developer. All Rights Reserved.
moel@86
    21
moel@86
    22
  Contributor(s):
moel@86
    23
moel@86
    24
  Alternatively, the contents of this file may be used under the terms of
moel@86
    25
  either the GNU General Public License Version 2 or later (the "GPL"), or
moel@86
    26
  the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
moel@86
    27
  in which case the provisions of the GPL or the LGPL are applicable instead
moel@86
    28
  of those above. If you wish to allow use of your version of this file only
moel@86
    29
  under the terms of either the GPL or the LGPL, and not to allow others to
moel@86
    30
  use your version of this file under the terms of the MPL, indicate your
moel@86
    31
  decision by deleting the provisions above and replace them with the notice
moel@86
    32
  and other provisions required by the GPL or the LGPL. If you do not delete
moel@86
    33
  the provisions above, a recipient may use your version of this file under
moel@86
    34
  the terms of any one of the MPL, the GPL or the LGPL.
moel@86
    35
 
moel@86
    36
*/
moel@86
    37
moel@86
    38
namespace OpenHardwareMonitor.GUI {
moel@63
    39
  partial class ParameterForm {
moel@63
    40
    /// <summary>
moel@63
    41
    /// Required designer variable.
moel@63
    42
    /// </summary>
moel@63
    43
    private System.ComponentModel.IContainer components = null;
moel@63
    44
moel@63
    45
    /// <summary>
moel@63
    46
    /// Clean up any resources being used.
moel@63
    47
    /// </summary>
moel@63
    48
    /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
moel@63
    49
    protected override void Dispose(bool disposing) {
moel@63
    50
      if (disposing && (components != null)) {
moel@63
    51
        components.Dispose();
moel@63
    52
      }
moel@63
    53
      base.Dispose(disposing);
moel@63
    54
    }
moel@63
    55
moel@63
    56
    #region Windows Form Designer generated code
moel@63
    57
moel@63
    58
    /// <summary>
moel@63
    59
    /// Required method for Designer support - do not modify
moel@63
    60
    /// the contents of this method with the code editor.
moel@63
    61
    /// </summary>
moel@63
    62
    private void InitializeComponent() {
moel@63
    63
      this.components = new System.ComponentModel.Container();
moel@63
    64
      System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
moel@63
    65
      this.okButton = new System.Windows.Forms.Button();
moel@63
    66
      this.cancelButton = new System.Windows.Forms.Button();
moel@63
    67
      this.captionLabel = new System.Windows.Forms.Label();
moel@63
    68
      this.dataGridView = new System.Windows.Forms.DataGridView();
moel@63
    69
      this.NameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
moel@63
    70
      this.Default = new System.Windows.Forms.DataGridViewCheckBoxColumn();
moel@63
    71
      this.ValueColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
moel@63
    72
      this.bindingSource = new System.Windows.Forms.BindingSource(this.components);
moel@63
    73
      this.descriptionLabel = new System.Windows.Forms.Label();
moel@63
    74
      ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
moel@63
    75
      ((System.ComponentModel.ISupportInitialize)(this.bindingSource)).BeginInit();
moel@63
    76
      this.SuspendLayout();
moel@63
    77
      // 
moel@63
    78
      // okButton
moel@63
    79
      // 
moel@63
    80
      this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
moel@63
    81
      this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
moel@63
    82
      this.okButton.Location = new System.Drawing.Point(186, 213);
moel@63
    83
      this.okButton.Name = "okButton";
moel@63
    84
      this.okButton.Size = new System.Drawing.Size(75, 23);
moel@63
    85
      this.okButton.TabIndex = 2;
moel@63
    86
      this.okButton.Text = "OK";
moel@63
    87
      this.okButton.UseVisualStyleBackColor = true;
moel@63
    88
      this.okButton.Click += new System.EventHandler(this.okButton_Click);
moel@63
    89
      // 
moel@63
    90
      // cancelButton
moel@63
    91
      // 
moel@63
    92
      this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
moel@63
    93
      this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
moel@63
    94
      this.cancelButton.Location = new System.Drawing.Point(267, 213);
moel@63
    95
      this.cancelButton.Name = "cancelButton";
moel@63
    96
      this.cancelButton.Size = new System.Drawing.Size(75, 23);
moel@63
    97
      this.cancelButton.TabIndex = 3;
moel@74
    98
      this.cancelButton.Text = "Cancel";
moel@63
    99
      this.cancelButton.UseVisualStyleBackColor = true;
moel@63
   100
      // 
moel@63
   101
      // captionLabel
moel@63
   102
      // 
moel@63
   103
      this.captionLabel.AutoSize = true;
moel@63
   104
      this.captionLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
moel@63
   105
      this.captionLabel.Location = new System.Drawing.Point(12, 9);
moel@63
   106
      this.captionLabel.Name = "captionLabel";
moel@63
   107
      this.captionLabel.Size = new System.Drawing.Size(80, 13);
moel@63
   108
      this.captionLabel.TabIndex = 4;
moel@63
   109
      this.captionLabel.Text = "captionLabel";
moel@63
   110
      // 
moel@63
   111
      // dataGridView
moel@63
   112
      // 
moel@63
   113
      this.dataGridView.AllowUserToAddRows = false;
moel@63
   114
      this.dataGridView.AllowUserToDeleteRows = false;
moel@63
   115
      this.dataGridView.AllowUserToResizeRows = false;
moel@63
   116
      this.dataGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
moel@63
   117
                  | System.Windows.Forms.AnchorStyles.Left)
moel@63
   118
                  | System.Windows.Forms.AnchorStyles.Right)));
moel@63
   119
      this.dataGridView.AutoGenerateColumns = false;
moel@63
   120
      this.dataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
moel@63
   121
      this.dataGridView.BackgroundColor = System.Drawing.SystemColors.Window;
moel@63
   122
      this.dataGridView.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
moel@63
   123
      this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
moel@63
   124
      this.dataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
moel@63
   125
            this.NameColumn,
moel@63
   126
            this.Default,
moel@63
   127
            this.ValueColumn});
moel@63
   128
      this.dataGridView.DataSource = this.bindingSource;
moel@63
   129
      dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
moel@63
   130
      dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Window;
moel@63
   131
      dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
moel@63
   132
      dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.ControlText;
moel@63
   133
      dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
moel@63
   134
      dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.ControlText;
moel@63
   135
      dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
moel@63
   136
      this.dataGridView.DefaultCellStyle = dataGridViewCellStyle1;
moel@63
   137
      this.dataGridView.Location = new System.Drawing.Point(15, 30);
moel@63
   138
      this.dataGridView.MultiSelect = false;
moel@63
   139
      this.dataGridView.Name = "dataGridView";
moel@63
   140
      this.dataGridView.RowHeadersVisible = false;
moel@63
   141
      this.dataGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
moel@63
   142
      this.dataGridView.ShowRowErrors = false;
moel@63
   143
      this.dataGridView.Size = new System.Drawing.Size(327, 121);
moel@63
   144
      this.dataGridView.TabIndex = 0;
moel@63
   145
      this.dataGridView.RowEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView_RowEnter);
moel@63
   146
      this.dataGridView.CellValidating += new System.Windows.Forms.DataGridViewCellValidatingEventHandler(this.dataGridView_CellValidating);
moel@63
   147
      this.dataGridView.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView_CellEndEdit);
moel@63
   148
      this.dataGridView.CurrentCellDirtyStateChanged += new System.EventHandler(this.dataGridView_CurrentCellDirtyStateChanged);
moel@63
   149
      // 
moel@63
   150
      // NameColumn
moel@63
   151
      // 
moel@63
   152
      this.NameColumn.DataPropertyName = "Name";
moel@63
   153
      this.NameColumn.HeaderText = "Name";
moel@63
   154
      this.NameColumn.Name = "NameColumn";
moel@63
   155
      this.NameColumn.ReadOnly = true;
moel@63
   156
      this.NameColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
moel@63
   157
      // 
moel@63
   158
      // Default
moel@63
   159
      // 
moel@63
   160
      this.Default.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.ColumnHeader;
moel@63
   161
      this.Default.DataPropertyName = "Default";
moel@63
   162
      this.Default.HeaderText = "Default";
moel@63
   163
      this.Default.Name = "Default";
moel@63
   164
      this.Default.Width = 47;
moel@63
   165
      // 
moel@63
   166
      // ValueColumn
moel@63
   167
      // 
moel@63
   168
      this.ValueColumn.DataPropertyName = "Value";
moel@63
   169
      this.ValueColumn.HeaderText = "Value";
moel@63
   170
      this.ValueColumn.Name = "ValueColumn";
moel@63
   171
      this.ValueColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
moel@63
   172
      // 
moel@63
   173
      // bindingSource
moel@63
   174
      // 
moel@63
   175
      this.bindingSource.AllowNew = false;
moel@63
   176
      // 
moel@63
   177
      // descriptionLabel
moel@63
   178
      // 
moel@63
   179
      this.descriptionLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
moel@63
   180
                  | System.Windows.Forms.AnchorStyles.Right)));
moel@63
   181
      this.descriptionLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
moel@63
   182
      this.descriptionLabel.Location = new System.Drawing.Point(15, 154);
moel@63
   183
      this.descriptionLabel.Name = "descriptionLabel";
moel@63
   184
      this.descriptionLabel.Padding = new System.Windows.Forms.Padding(2);
moel@63
   185
      this.descriptionLabel.Size = new System.Drawing.Size(327, 50);
moel@63
   186
      this.descriptionLabel.TabIndex = 6;
moel@63
   187
      this.descriptionLabel.Text = "descriptionLabel";
moel@63
   188
      // 
moel@63
   189
      // ParameterForm
moel@63
   190
      // 
moel@63
   191
      this.AcceptButton = this.okButton;
moel@63
   192
      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
moel@63
   193
      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
moel@63
   194
      this.ClientSize = new System.Drawing.Size(354, 248);
moel@63
   195
      this.Controls.Add(this.descriptionLabel);
moel@63
   196
      this.Controls.Add(this.dataGridView);
moel@63
   197
      this.Controls.Add(this.captionLabel);
moel@63
   198
      this.Controls.Add(this.cancelButton);
moel@63
   199
      this.Controls.Add(this.okButton);
moel@86
   200
      this.MaximizeBox = false;
moel@86
   201
      this.MinimizeBox = false;
moel@63
   202
      this.Name = "ParameterForm";
moel@63
   203
      this.ShowIcon = false;
moel@63
   204
      this.ShowInTaskbar = false;
moel@63
   205
      this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
moel@63
   206
      this.Text = "Parameters";
moel@63
   207
      ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
moel@63
   208
      ((System.ComponentModel.ISupportInitialize)(this.bindingSource)).EndInit();
moel@63
   209
      this.ResumeLayout(false);
moel@63
   210
      this.PerformLayout();
moel@63
   211
moel@63
   212
    }
moel@63
   213
moel@63
   214
    #endregion
moel@63
   215
moel@63
   216
    private System.Windows.Forms.Button okButton;
moel@63
   217
    private System.Windows.Forms.Button cancelButton;
moel@63
   218
    public System.Windows.Forms.Label captionLabel;
moel@63
   219
    private System.Windows.Forms.DataGridView dataGridView;
moel@63
   220
    private System.Windows.Forms.Label descriptionLabel;
moel@63
   221
    private System.Windows.Forms.BindingSource bindingSource;
moel@63
   222
    private System.Windows.Forms.DataGridViewTextBoxColumn NameColumn;
moel@63
   223
    private System.Windows.Forms.DataGridViewCheckBoxColumn Default;
moel@63
   224
    private System.Windows.Forms.DataGridViewTextBoxColumn ValueColumn;
moel@63
   225
moel@63
   226
  }
moel@63
   227
}