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