GUI/AboutBox.Designer.cs
author moel.mich
Thu, 11 Nov 2010 21:22:24 +0000
changeset 241 52007c404f32
parent 63 1a7c13ac7348
child 269 38cd90779aad
permissions -rw-r--r--
Fixed a problem, where the MainForm location and size was lost when the application is started minimized and exited without ever showing the form. This caused MainForm_Load to be never called (location and size was not loaded), but the default size and location were still saved. The new implementation only saves the location and size when one of the two is changed.
moel@1
     1
/*
moel@1
     2
  
moel@1
     3
  Version: MPL 1.1/GPL 2.0/LGPL 2.1
moel@1
     4
moel@1
     5
  The contents of this file are subject to the Mozilla Public License Version
moel@1
     6
  1.1 (the "License"); you may not use this file except in compliance with
moel@1
     7
  the License. You may obtain a copy of the License at
moel@1
     8
 
moel@1
     9
  http://www.mozilla.org/MPL/
moel@1
    10
moel@1
    11
  Software distributed under the License is distributed on an "AS IS" basis,
moel@1
    12
  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
moel@1
    13
  for the specific language governing rights and limitations under the License.
moel@1
    14
moel@1
    15
  The Original Code is the Open Hardware Monitor code.
moel@1
    16
moel@1
    17
  The Initial Developer of the Original Code is 
moel@1
    18
  Michael Möller <m.moeller@gmx.ch>.
moel@1
    19
  Portions created by the Initial Developer are Copyright (C) 2009-2010
moel@1
    20
  the Initial Developer. All Rights Reserved.
moel@1
    21
moel@1
    22
  Contributor(s):
moel@1
    23
moel@1
    24
  Alternatively, the contents of this file may be used under the terms of
moel@1
    25
  either the GNU General Public License Version 2 or later (the "GPL"), or
moel@1
    26
  the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
moel@1
    27
  in which case the provisions of the GPL or the LGPL are applicable instead
moel@1
    28
  of those above. If you wish to allow use of your version of this file only
moel@1
    29
  under the terms of either the GPL or the LGPL, and not to allow others to
moel@1
    30
  use your version of this file under the terms of the MPL, indicate your
moel@1
    31
  decision by deleting the provisions above and replace them with the notice
moel@1
    32
  and other provisions required by the GPL or the LGPL. If you do not delete
moel@1
    33
  the provisions above, a recipient may use your version of this file under
moel@1
    34
  the terms of any one of the MPL, the GPL or the LGPL.
moel@1
    35
 
moel@1
    36
*/
moel@1
    37
moel@1
    38
namespace OpenHardwareMonitor.GUI {
moel@1
    39
  partial class AboutBox {
moel@1
    40
    /// <summary>
moel@1
    41
    /// Required designer variable.
moel@1
    42
    /// </summary>
moel@1
    43
    private System.ComponentModel.IContainer components = null;
moel@1
    44
moel@1
    45
    /// <summary>
moel@1
    46
    /// Clean up any resources being used.
moel@1
    47
    /// </summary>
moel@1
    48
    /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
moel@1
    49
    protected override void Dispose(bool disposing) {
moel@1
    50
      if (disposing && (components != null)) {
moel@1
    51
        components.Dispose();
moel@1
    52
      }
moel@1
    53
      base.Dispose(disposing);
moel@1
    54
    }
moel@1
    55
moel@1
    56
    #region Windows Form Designer generated code
moel@1
    57
moel@1
    58
    /// <summary>
moel@1
    59
    /// Required method for Designer support - do not modify
moel@1
    60
    /// the contents of this method with the code editor.
moel@1
    61
    /// </summary>
moel@1
    62
    private void InitializeComponent() {
moel@1
    63
      System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutBox));
moel@1
    64
      this.okButton = new System.Windows.Forms.Button();
moel@1
    65
      this.pictureBox1 = new System.Windows.Forms.PictureBox();
moel@1
    66
      this.label1 = new System.Windows.Forms.Label();
moel@1
    67
      this.label2 = new System.Windows.Forms.Label();
moel@1
    68
      this.label3 = new System.Windows.Forms.Label();
moel@1
    69
      this.label4 = new System.Windows.Forms.Label();
moel@1
    70
      this.linkLabel = new System.Windows.Forms.LinkLabel();
moel@1
    71
      this.label5 = new System.Windows.Forms.Label();
moel@1
    72
      this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
moel@1
    73
      ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
moel@1
    74
      this.flowLayoutPanel1.SuspendLayout();
moel@1
    75
      this.SuspendLayout();
moel@1
    76
      // 
moel@1
    77
      // okButton
moel@1
    78
      // 
moel@1
    79
      this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
moel@1
    80
      this.okButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
moel@1
    81
      this.okButton.Location = new System.Drawing.Point(305, 142);
moel@1
    82
      this.okButton.Name = "okButton";
moel@1
    83
      this.okButton.Size = new System.Drawing.Size(87, 27);
moel@1
    84
      this.okButton.TabIndex = 0;
moel@1
    85
      this.okButton.Text = "OK";
moel@1
    86
      this.okButton.UseVisualStyleBackColor = true;
moel@1
    87
      // 
moel@1
    88
      // pictureBox1
moel@1
    89
      // 
moel@1
    90
      this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
moel@1
    91
      this.pictureBox1.Location = new System.Drawing.Point(12, 13);
moel@1
    92
      this.pictureBox1.Name = "pictureBox1";
moel@1
    93
      this.pictureBox1.Size = new System.Drawing.Size(56, 56);
moel@1
    94
      this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
moel@1
    95
      this.pictureBox1.TabIndex = 1;
moel@1
    96
      this.pictureBox1.TabStop = false;
moel@1
    97
      // 
moel@1
    98
      // label1
moel@1
    99
      // 
moel@117
   100
      this.label1.AutoSize = true;      
moel@1
   101
      this.label1.Location = new System.Drawing.Point(85, 13);
moel@1
   102
      this.label1.Margin = new System.Windows.Forms.Padding(12, 0, 12, 0);
moel@1
   103
      this.label1.Name = "label1";
moel@1
   104
      this.label1.Size = new System.Drawing.Size(179, 20);
moel@1
   105
      this.label1.TabIndex = 2;
moel@1
   106
      this.label1.Text = "Open Hardware Monitor";
moel@1
   107
      // 
moel@1
   108
      // label2
moel@1
   109
      // 
moel@1
   110
      this.label2.AutoSize = true;
moel@1
   111
      this.label2.Location = new System.Drawing.Point(86, 54);
moel@1
   112
      this.label2.Margin = new System.Windows.Forms.Padding(12, 0, 12, 0);
moel@1
   113
      this.label2.Name = "label2";
moel@1
   114
      this.label2.Size = new System.Drawing.Size(315, 15);
moel@1
   115
      this.label2.TabIndex = 3;
moel@1
   116
      this.label2.Text = "Copyright © 2009-2010 Michael Möller. All rights reserved.";
moel@1
   117
      // 
moel@1
   118
      // label3
moel@1
   119
      // 
moel@1
   120
      this.label3.AutoSize = true;
moel@1
   121
      this.label3.Location = new System.Drawing.Point(86, 36);
moel@1
   122
      this.label3.Margin = new System.Windows.Forms.Padding(12, 0, 12, 0);
moel@1
   123
      this.label3.Name = "label3";
moel@63
   124
      this.label3.Size = new System.Drawing.Size(132, 15);
moel@1
   125
      this.label3.TabIndex = 4;
moel@63
   126
      this.label3.Text = "Version 9.0.30729.1 Beta";
moel@1
   127
      // 
moel@1
   128
      // label4
moel@1
   129
      // 
moel@1
   130
      this.label4.AutoSize = true;
moel@1
   131
      this.label4.Location = new System.Drawing.Point(9, 95);
moel@1
   132
      this.label4.Margin = new System.Windows.Forms.Padding(12, 0, 12, 0);
moel@1
   133
      this.label4.Name = "label4";
moel@1
   134
      this.label4.Size = new System.Drawing.Size(412, 15);
moel@1
   135
      this.label4.TabIndex = 5;
moel@1
   136
      this.label4.Text = "The source code is available under the terms of the Mozilla Public License 1.1";
moel@1
   137
      // 
moel@1
   138
      // linkLabel
moel@1
   139
      // 
moel@1
   140
      this.linkLabel.AutoSize = true;
moel@1
   141
      this.linkLabel.Location = new System.Drawing.Point(145, 0);
moel@1
   142
      this.linkLabel.Margin = new System.Windows.Forms.Padding(0, 0, 12, 0);
moel@1
   143
      this.linkLabel.Name = "linkLabel";
moel@1
   144
      this.linkLabel.Size = new System.Drawing.Size(176, 15);
moel@1
   145
      this.linkLabel.TabIndex = 6;
moel@1
   146
      this.linkLabel.TabStop = true;
moel@1
   147
      this.linkLabel.Text = "Open Hardware Monitor Project";
moel@1
   148
      this.linkLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
moel@1
   149
      // 
moel@1
   150
      // label5
moel@1
   151
      // 
moel@1
   152
      this.label5.AutoSize = true;
moel@1
   153
      this.label5.Location = new System.Drawing.Point(0, 0);
moel@1
   154
      this.label5.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0);
moel@1
   155
      this.label5.Name = "label5";
moel@1
   156
      this.label5.Size = new System.Drawing.Size(142, 15);
moel@1
   157
      this.label5.TabIndex = 7;
moel@1
   158
      this.label5.Text = "from the project website: ";
moel@1
   159
      // 
moel@1
   160
      // flowLayoutPanel1
moel@1
   161
      // 
moel@1
   162
      this.flowLayoutPanel1.AutoSize = true;
moel@1
   163
      this.flowLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
moel@1
   164
      this.flowLayoutPanel1.Controls.Add(this.label5);
moel@1
   165
      this.flowLayoutPanel1.Controls.Add(this.linkLabel);
moel@1
   166
      this.flowLayoutPanel1.Location = new System.Drawing.Point(12, 115);
moel@1
   167
      this.flowLayoutPanel1.Margin = new System.Windows.Forms.Padding(12, 0, 12, 0);
moel@1
   168
      this.flowLayoutPanel1.Name = "flowLayoutPanel1";
moel@1
   169
      this.flowLayoutPanel1.Size = new System.Drawing.Size(333, 15);
moel@1
   170
      this.flowLayoutPanel1.TabIndex = 8;
moel@1
   171
      // 
moel@1
   172
      // AboutBox
moel@1
   173
      // 
moel@1
   174
      this.AcceptButton = this.okButton;
moel@1
   175
      this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
moel@1
   176
      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
moel@1
   177
      this.AutoSize = true;
moel@1
   178
      this.ClientSize = new System.Drawing.Size(404, 182);
moel@1
   179
      this.Controls.Add(this.flowLayoutPanel1);
moel@1
   180
      this.Controls.Add(this.label4);
moel@1
   181
      this.Controls.Add(this.label3);
moel@1
   182
      this.Controls.Add(this.label2);
moel@1
   183
      this.Controls.Add(this.label1);
moel@1
   184
      this.Controls.Add(this.pictureBox1);
moel@117
   185
      this.Controls.Add(this.okButton);      
moel@1
   186
      this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
moel@1
   187
      this.MaximizeBox = false;
moel@1
   188
      this.MinimizeBox = false;
moel@1
   189
      this.Name = "AboutBox";
moel@63
   190
      this.ShowInTaskbar = false;
moel@1
   191
      this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
moel@1
   192
      this.Text = "About";
moel@1
   193
      ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
moel@1
   194
      this.flowLayoutPanel1.ResumeLayout(false);
moel@1
   195
      this.flowLayoutPanel1.PerformLayout();
moel@1
   196
      this.ResumeLayout(false);
moel@1
   197
      this.PerformLayout();
moel@1
   198
moel@1
   199
    }
moel@1
   200
moel@1
   201
    #endregion
moel@1
   202
moel@1
   203
    private System.Windows.Forms.Button okButton;
moel@1
   204
    private System.Windows.Forms.PictureBox pictureBox1;
moel@1
   205
    private System.Windows.Forms.Label label1;
moel@1
   206
    private System.Windows.Forms.Label label2;
moel@1
   207
    private System.Windows.Forms.Label label3;
moel@1
   208
    private System.Windows.Forms.Label label4;
moel@1
   209
    private System.Windows.Forms.LinkLabel linkLabel;
moel@1
   210
    private System.Windows.Forms.Label label5;
moel@1
   211
    private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
moel@1
   212
  }
moel@1
   213
}