Made form localizable

This commit is contained in:
Jaex 2020-09-13 21:13:45 +03:00
parent 09967e91b4
commit ea69c42047
2 changed files with 167 additions and 32 deletions

View file

@ -28,6 +28,7 @@ protected override void Dispose(bool disposing)
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ClipboardViewerForm));
this.txtSelectedClipboardContent = new System.Windows.Forms.TextBox();
this.btnRefresh = new System.Windows.Forms.Button();
this.btnClearClipboard = new System.Windows.Forms.Button();
@ -38,80 +39,57 @@ private void InitializeComponent()
//
// txtSelectedClipboardContent
//
this.txtSelectedClipboardContent.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtSelectedClipboardContent.Location = new System.Drawing.Point(264, 8);
this.txtSelectedClipboardContent.Multiline = true;
resources.ApplyResources(this.txtSelectedClipboardContent, "txtSelectedClipboardContent");
this.txtSelectedClipboardContent.Name = "txtSelectedClipboardContent";
this.txtSelectedClipboardContent.ReadOnly = true;
this.txtSelectedClipboardContent.Size = new System.Drawing.Size(512, 544);
this.txtSelectedClipboardContent.TabIndex = 3;
//
// btnRefresh
//
this.btnRefresh.Location = new System.Drawing.Point(8, 8);
resources.ApplyResources(this.btnRefresh, "btnRefresh");
this.btnRefresh.Name = "btnRefresh";
this.btnRefresh.Size = new System.Drawing.Size(120, 32);
this.btnRefresh.TabIndex = 0;
this.btnRefresh.Text = "Refresh";
this.btnRefresh.UseVisualStyleBackColor = true;
this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click);
//
// btnClearClipboard
//
this.btnClearClipboard.Location = new System.Drawing.Point(136, 8);
resources.ApplyResources(this.btnClearClipboard, "btnClearClipboard");
this.btnClearClipboard.Name = "btnClearClipboard";
this.btnClearClipboard.Size = new System.Drawing.Size(120, 32);
this.btnClearClipboard.TabIndex = 1;
this.btnClearClipboard.Text = "Clear clipboard";
this.btnClearClipboard.UseVisualStyleBackColor = true;
this.btnClearClipboard.Click += new System.EventHandler(this.btnClearClipboard_Click);
//
// lvClipboardContentList
//
this.lvClipboardContentList.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
resources.ApplyResources(this.lvClipboardContentList, "lvClipboardContentList");
this.lvClipboardContentList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.chFormat});
this.lvClipboardContentList.FullRowSelect = true;
this.lvClipboardContentList.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
this.lvClipboardContentList.HideSelection = false;
this.lvClipboardContentList.Location = new System.Drawing.Point(8, 48);
this.lvClipboardContentList.MultiSelect = false;
this.lvClipboardContentList.Name = "lvClipboardContentList";
this.lvClipboardContentList.Size = new System.Drawing.Size(248, 504);
this.lvClipboardContentList.TabIndex = 2;
this.lvClipboardContentList.UseCompatibleStateImageBehavior = false;
this.lvClipboardContentList.View = System.Windows.Forms.View.Details;
this.lvClipboardContentList.SelectedIndexChanged += new System.EventHandler(this.lvClipboardContentList_SelectedIndexChanged);
//
// chFormat
//
this.chFormat.Text = "Format";
this.chFormat.Width = 244;
resources.ApplyResources(this.chFormat, "chFormat");
//
// pbSelectedClipboardContent
//
this.pbSelectedClipboardContent.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
resources.ApplyResources(this.pbSelectedClipboardContent, "pbSelectedClipboardContent");
this.pbSelectedClipboardContent.BackColor = System.Drawing.SystemColors.Window;
this.pbSelectedClipboardContent.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pbSelectedClipboardContent.DrawCheckeredBackground = true;
this.pbSelectedClipboardContent.FullscreenOnClick = true;
this.pbSelectedClipboardContent.Location = new System.Drawing.Point(264, 8);
this.pbSelectedClipboardContent.Name = "pbSelectedClipboardContent";
this.pbSelectedClipboardContent.PictureBoxBackColor = System.Drawing.SystemColors.Window;
this.pbSelectedClipboardContent.ShowImageSizeLabel = true;
this.pbSelectedClipboardContent.Size = new System.Drawing.Size(512, 544);
this.pbSelectedClipboardContent.TabIndex = 4;
//
// ClipboardViewerForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(784, 561);
this.Controls.Add(this.pbSelectedClipboardContent);
this.Controls.Add(this.lvClipboardContentList);
this.Controls.Add(this.btnClearClipboard);
@ -119,8 +97,6 @@ private void InitializeComponent()
this.Controls.Add(this.txtSelectedClipboardContent);
this.DoubleBuffered = true;
this.Name = "ClipboardViewerForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "ShareX - Clipboard viewer";
this.ResumeLayout(false);
this.PerformLayout();

View file

@ -117,4 +117,163 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="txtSelectedClipboardContent.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top, Bottom, Left, Right</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="txtSelectedClipboardContent.Location" type="System.Drawing.Point, System.Drawing">
<value>264, 8</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="txtSelectedClipboardContent.Multiline" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="txtSelectedClipboardContent.Size" type="System.Drawing.Size, System.Drawing">
<value>512, 544</value>
</data>
<data name="txtSelectedClipboardContent.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name="&gt;&gt;txtSelectedClipboardContent.Name" xml:space="preserve">
<value>txtSelectedClipboardContent</value>
</data>
<data name="&gt;&gt;txtSelectedClipboardContent.Type" xml:space="preserve">
<value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;txtSelectedClipboardContent.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;txtSelectedClipboardContent.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="btnRefresh.Location" type="System.Drawing.Point, System.Drawing">
<value>8, 8</value>
</data>
<data name="btnRefresh.Size" type="System.Drawing.Size, System.Drawing">
<value>120, 32</value>
</data>
<data name="btnRefresh.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="btnRefresh.Text" xml:space="preserve">
<value>Refresh</value>
</data>
<data name="&gt;&gt;btnRefresh.Name" xml:space="preserve">
<value>btnRefresh</value>
</data>
<data name="&gt;&gt;btnRefresh.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;btnRefresh.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;btnRefresh.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="btnClearClipboard.Location" type="System.Drawing.Point, System.Drawing">
<value>136, 8</value>
</data>
<data name="btnClearClipboard.Size" type="System.Drawing.Size, System.Drawing">
<value>120, 32</value>
</data>
<data name="btnClearClipboard.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="btnClearClipboard.Text" xml:space="preserve">
<value>Clear clipboard</value>
</data>
<data name="&gt;&gt;btnClearClipboard.Name" xml:space="preserve">
<value>btnClearClipboard</value>
</data>
<data name="&gt;&gt;btnClearClipboard.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;btnClearClipboard.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;btnClearClipboard.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="lvClipboardContentList.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top, Bottom, Left</value>
</data>
<data name="chFormat.Text" xml:space="preserve">
<value>Format</value>
</data>
<data name="chFormat.Width" type="System.Int32, mscorlib">
<value>244</value>
</data>
<data name="lvClipboardContentList.Location" type="System.Drawing.Point, System.Drawing">
<value>8, 48</value>
</data>
<data name="lvClipboardContentList.Size" type="System.Drawing.Size, System.Drawing">
<value>248, 504</value>
</data>
<data name="lvClipboardContentList.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="&gt;&gt;lvClipboardContentList.Name" xml:space="preserve">
<value>lvClipboardContentList</value>
</data>
<data name="&gt;&gt;lvClipboardContentList.Type" xml:space="preserve">
<value>System.Windows.Forms.ListView, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;lvClipboardContentList.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;lvClipboardContentList.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="pbSelectedClipboardContent.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top, Bottom, Left, Right</value>
</data>
<data name="pbSelectedClipboardContent.Location" type="System.Drawing.Point, System.Drawing">
<value>264, 8</value>
</data>
<data name="pbSelectedClipboardContent.Size" type="System.Drawing.Size, System.Drawing">
<value>512, 544</value>
</data>
<data name="pbSelectedClipboardContent.TabIndex" type="System.Int32, mscorlib">
<value>4</value>
</data>
<data name="&gt;&gt;pbSelectedClipboardContent.Name" xml:space="preserve">
<value>pbSelectedClipboardContent</value>
</data>
<data name="&gt;&gt;pbSelectedClipboardContent.Type" xml:space="preserve">
<value>ShareX.HelpersLib.MyPictureBox, ShareX.HelpersLib, Version=13.2.2.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;pbSelectedClipboardContent.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;pbSelectedClipboardContent.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>6, 13</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>784, 561</value>
</data>
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
<value>CenterScreen</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>ShareX - Clipboard viewer</value>
</data>
<data name="&gt;&gt;chFormat.Name" xml:space="preserve">
<value>chFormat</value>
</data>
<data name="&gt;&gt;chFormat.Type" xml:space="preserve">
<value>System.Windows.Forms.ColumnHeader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;$this.Name" xml:space="preserve">
<value>ClipboardViewerForm</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
</root>