Use image from icon in about window

This commit is contained in:
Nikolaj Olsson 2021-02-12 19:56:02 +01:00
parent bc48186a68
commit 1770d3f697
3 changed files with 13 additions and 85 deletions

View File

@ -28,15 +28,14 @@
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(About));
this.okButton = new System.Windows.Forms.Button();
this.labelProduct = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.pictureBoxSE = new System.Windows.Forms.PictureBox();
this.richTextBoxAbout1 = new System.Windows.Forms.RichTextBox();
this.buttonDonate = new System.Windows.Forms.Button();
this.linkLabelGitBuildHash = new System.Windows.Forms.LinkLabel();
this.tooltip = new System.Windows.Forms.ToolTip(this.components);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxSE)).BeginInit();
this.SuspendLayout();
//
// okButton
@ -60,14 +59,14 @@
this.labelProduct.TabIndex = 26;
this.labelProduct.Text = "Subtitle Edit 3.2";
//
// pictureBox1
// pictureBoxSE
//
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(399, 14);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(70, 64);
this.pictureBox1.TabIndex = 27;
this.pictureBox1.TabStop = false;
this.pictureBoxSE.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.pictureBoxSE.Location = new System.Drawing.Point(432, 12);
this.pictureBoxSE.Name = "pictureBoxSE";
this.pictureBoxSE.Size = new System.Drawing.Size(32, 32);
this.pictureBoxSE.TabIndex = 27;
this.pictureBoxSE.TabStop = false;
//
// richTextBoxAbout1
//
@ -122,7 +121,7 @@
this.Controls.Add(this.linkLabelGitBuildHash);
this.Controls.Add(this.buttonDonate);
this.Controls.Add(this.okButton);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.pictureBoxSE);
this.Controls.Add(this.richTextBoxAbout1);
this.Controls.Add(this.labelProduct);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
@ -137,7 +136,7 @@
this.Text = "About Subtitle Edit";
this.Shown += new System.EventHandler(this.About_Shown);
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.About_KeyDown);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxSE)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@ -147,7 +146,7 @@
private System.Windows.Forms.Button okButton;
private System.Windows.Forms.Label labelProduct;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.PictureBox pictureBoxSE;
private System.Windows.Forms.RichTextBox richTextBoxAbout1;
private System.Windows.Forms.Button buttonDonate;
private System.Windows.Forms.LinkLabel linkLabelGitBuildHash;

View File

@ -54,6 +54,7 @@ namespace Nikse.SubtitleEdit.Forms
richTextBoxAbout1.Text = aboutText;
SetHeight();
pictureBoxSE.Image = Properties.Resources.SubtitleEditFormIcon.ToBitmap();
}
private void SetHeight()

View File

@ -117,78 +117,6 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="pictureBox1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABGdBTUEAAK/INwWK6QAAAAlwSFlzAAAO
vAAADrwBlbxySQAAABl0RVh0U29mdHdhcmUAUGFpbnQuTkVUIHYzLjUuNUmK/OAAAA72SURBVHhe7drr
j1XVGQZw/xW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Z4VzvbOXXcfUUCMOBwoKmK1yJk4OO4x7/PNABorLAxl
pPyJuoAMwsjz+LiKd+OPUaZTfYSH5SoP60//rTyKoKmLF3Pwsus8yz7t4/c+RL1E6VOoE5StiBsLXO/T
8/nGMGSFY6hnoJghEIxfd5Buu669mD17TpdnPSOKPKcohXeDbOQpYkEu8pYI4enwsmjwLLuCtFxGjHNy
GBfpCHvt9FOn1v/NQFFZH3poXfplxTrc9XuW3ZOmx0iTeC9gmPvCUFjmXo08VZnBsWsE0IaRiEYIE414
0gPRIEbcHOFl94H3gT1E77Ha97UxXifhUUo+v/f5plzjEXvXeOrgXw4mIlW4F6jma3gV4fCscVuFcyvi
HATE0h8R2V6ncXybDoWVARmxbfv2ZHx4NoeQzcNWuyrB8GhOMBAezJHfs89D3fMQAhC2bvbAbUIXCQYQ
wcC8hBQPIgkKknZCLvdmHsII8GZ4rupNAhvHGARS2PShL31Ki4i4HPrWx4B5vbrJIQY8WBoWBvuTIULh
SYbnVTfaQVxzHyJHc6/qQ19RMI0XZIkbYvOyEA/h3fcc9Lq4GYjNwAxUE/JqL/wcK5j2EZLRznEUpdyr
4dFWXgXXRVSkjucJFoKKLNe1OeHkY5PrvMOQQOQk74YAhCGIJbRr2iluVfI5YUTcj5SJSImoidTQj2fV
GzNI3bT//SY1CKJOMAQJ5IU2QxkeEcB4xBgfRTAIBeLP2eF9+1gRKqzGqg/9/7shGGR5PSIicj68qZ1I
QNSM8aMg159NVAjlyHXFS+ECRH80njyeDUFkT9i0dHI7uZ2g7ZRT/gtoD4EpsituXQAAAABJRU5ErkJg
gg==
</value>
</data>
<metadata name="tooltip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>