1
0
mirror of https://github.com/Ylianst/MeshCentralRouter synced 2025-12-06 00:13:33 +00:00

Added internalization support.

This commit is contained in:
Ylian Saint-Hilaire
2020-06-12 16:26:43 -07:00
parent 4d57656c5b
commit 547fe9ab79
25 changed files with 4156 additions and 834 deletions

View File

@@ -29,6 +29,7 @@
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ServerUserControl));
this.serverInfoLabel = new System.Windows.Forms.Label();
this.serverNameLabel = new System.Windows.Forms.Label();
this.serverPictureBox = new System.Windows.Forms.PictureBox();
@@ -41,36 +42,21 @@
//
// serverInfoLabel
//
this.serverInfoLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.serverInfoLabel.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.serverInfoLabel.Location = new System.Drawing.Point(65, 30);
resources.ApplyResources(this.serverInfoLabel, "serverInfoLabel");
this.serverInfoLabel.Name = "serverInfoLabel";
this.serverInfoLabel.Size = new System.Drawing.Size(420, 18);
this.serverInfoLabel.TabIndex = 11;
this.serverInfoLabel.Text = "Server information";
this.serverInfoLabel.Click += new System.EventHandler(this.serverButton_Click);
//
// serverNameLabel
//
this.serverNameLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.serverNameLabel.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.serverNameLabel.Location = new System.Drawing.Point(65, 10);
resources.ApplyResources(this.serverNameLabel, "serverNameLabel");
this.serverNameLabel.Name = "serverNameLabel";
this.serverNameLabel.Size = new System.Drawing.Size(420, 18);
this.serverNameLabel.TabIndex = 10;
this.serverNameLabel.Text = "ServerName";
this.serverNameLabel.Click += new System.EventHandler(this.serverButton_Click);
//
// serverPictureBox
//
this.serverPictureBox.Image = global::MeshCentralRouter.Properties.Resources.MeshCentral;
this.serverPictureBox.Location = new System.Drawing.Point(0, 0);
resources.ApplyResources(this.serverPictureBox, "serverPictureBox");
this.serverPictureBox.Name = "serverPictureBox";
this.serverPictureBox.Size = new System.Drawing.Size(59, 59);
this.serverPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.serverPictureBox.TabIndex = 9;
this.serverPictureBox.TabStop = false;
this.serverPictureBox.Click += new System.EventHandler(this.serverButton_Click);
//
@@ -79,13 +65,12 @@
this.serverContextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.infoToolStripMenuItem});
this.serverContextMenuStrip.Name = "serverContextMenuStrip";
this.serverContextMenuStrip.Size = new System.Drawing.Size(153, 48);
resources.ApplyResources(this.serverContextMenuStrip, "serverContextMenuStrip");
//
// infoToolStripMenuItem
//
this.infoToolStripMenuItem.Name = "infoToolStripMenuItem";
this.infoToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.infoToolStripMenuItem.Text = "&Info...";
resources.ApplyResources(this.infoToolStripMenuItem, "infoToolStripMenuItem");
this.infoToolStripMenuItem.Click += new System.EventHandler(this.infoToolStripMenuItem_Click);
//
// backTimer
@@ -95,7 +80,7 @@
//
// ServerUserControl
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
@@ -105,7 +90,6 @@
this.Controls.Add(this.serverPictureBox);
this.Cursor = System.Windows.Forms.Cursors.Hand;
this.Name = "ServerUserControl";
this.Size = new System.Drawing.Size(485, 57);
this.Load += new System.EventHandler(this.ServerUserControl_Load);
this.Click += new System.EventHandler(this.serverButton_Click);
((System.ComponentModel.ISupportInitialize)(this.serverPictureBox)).EndInit();