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

@@ -52,85 +52,54 @@
//
// cancelButton
//
this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
resources.ApplyResources(this.cancelButton, "cancelButton");
this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancelButton.Location = new System.Drawing.Point(288, 193);
this.cancelButton.Name = "cancelButton";
this.cancelButton.Size = new System.Drawing.Size(75, 23);
this.cancelButton.TabIndex = 0;
this.cancelButton.Text = "Cancel";
this.cancelButton.UseVisualStyleBackColor = true;
this.cancelButton.Click += new System.EventHandler(this.cancelButton_Click);
//
// okButton
//
this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.okButton.Location = new System.Drawing.Point(207, 193);
resources.ApplyResources(this.okButton, "okButton");
this.okButton.Name = "okButton";
this.okButton.Size = new System.Drawing.Size(75, 23);
this.okButton.TabIndex = 1;
this.okButton.Text = "OK";
this.okButton.UseVisualStyleBackColor = true;
this.okButton.Click += new System.EventHandler(this.okButton_Click);
//
// localNumericUpDown
//
this.localNumericUpDown.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.localNumericUpDown.Location = new System.Drawing.Point(157, 32);
resources.ApplyResources(this.localNumericUpDown, "localNumericUpDown");
this.localNumericUpDown.Maximum = new decimal(new int[] {
65535,
0,
0,
0});
this.localNumericUpDown.Name = "localNumericUpDown";
this.localNumericUpDown.Size = new System.Drawing.Size(206, 20);
this.localNumericUpDown.TabIndex = 2;
this.localNumericUpDown.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 34);
resources.ApplyResources(this.label1, "label1");
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(55, 13);
this.label1.TabIndex = 3;
this.label1.Text = "Local Port";
//
// nodeComboBox
//
this.nodeComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
resources.ApplyResources(this.nodeComboBox, "nodeComboBox");
this.nodeComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.nodeComboBox.FormattingEnabled = true;
this.nodeComboBox.Location = new System.Drawing.Point(157, 85);
this.nodeComboBox.Name = "nodeComboBox";
this.nodeComboBox.Size = new System.Drawing.Size(206, 21);
this.nodeComboBox.TabIndex = 4;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(12, 88);
resources.ApplyResources(this.label2, "label2");
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(71, 13);
this.label2.TabIndex = 5;
this.label2.Text = "Relay Device";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(12, 167);
resources.ApplyResources(this.label3, "label3");
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(66, 13);
this.label3.TabIndex = 7;
this.label3.Text = "Remote Port";
//
// remoteNumericUpDown
//
this.remoteNumericUpDown.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.remoteNumericUpDown.Location = new System.Drawing.Point(157, 165);
resources.ApplyResources(this.remoteNumericUpDown, "remoteNumericUpDown");
this.remoteNumericUpDown.Maximum = new decimal(new int[] {
65535,
0,
@@ -142,9 +111,6 @@
0,
0});
this.remoteNumericUpDown.Name = "remoteNumericUpDown";
this.remoteNumericUpDown.Size = new System.Drawing.Size(206, 20);
this.remoteNumericUpDown.TabIndex = 6;
this.remoteNumericUpDown.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.remoteNumericUpDown.Value = new decimal(new int[] {
80,
0,
@@ -153,113 +119,74 @@
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(12, 115);
resources.ApplyResources(this.label4, "label4");
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(59, 13);
this.label4.TabIndex = 9;
this.label4.Text = "Application";
//
// appComboBox
//
this.appComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
resources.ApplyResources(this.appComboBox, "appComboBox");
this.appComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.appComboBox.FormattingEnabled = true;
this.appComboBox.Items.AddRange(new object[] {
"Custom",
"HTTP",
"HTTPS",
"RDP",
"PuTTY",
"WinSCP"});
this.appComboBox.Location = new System.Drawing.Point(157, 112);
resources.GetString("appComboBox.Items"),
resources.GetString("appComboBox.Items1"),
resources.GetString("appComboBox.Items2"),
resources.GetString("appComboBox.Items3"),
resources.GetString("appComboBox.Items4"),
resources.GetString("appComboBox.Items5")});
this.appComboBox.Name = "appComboBox";
this.appComboBox.Size = new System.Drawing.Size(206, 21);
this.appComboBox.TabIndex = 8;
this.appComboBox.SelectedIndexChanged += new System.EventHandler(this.appComboBox_SelectedIndexChanged);
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(12, 142);
resources.ApplyResources(this.label5, "label5");
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(57, 13);
this.label5.TabIndex = 10;
this.label5.Text = "Remote IP";
//
// remoteIpTextBox
//
this.remoteIpTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.remoteIpTextBox.Location = new System.Drawing.Point(157, 139);
resources.ApplyResources(this.remoteIpTextBox, "remoteIpTextBox");
this.remoteIpTextBox.Name = "remoteIpTextBox";
this.remoteIpTextBox.Size = new System.Drawing.Size(206, 20);
this.remoteIpTextBox.TabIndex = 11;
this.remoteIpTextBox.Text = "127.0.0.1";
this.remoteIpTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.remoteIpTextBox.TextChanged += new System.EventHandler(this.remoteIpTextBox_TextChanged);
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(12, 61);
resources.ApplyResources(this.label6, "label6");
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(73, 13);
this.label6.TabIndex = 13;
this.label6.Text = "Device Group";
//
// groupComboBox
//
this.groupComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
resources.ApplyResources(this.groupComboBox, "groupComboBox");
this.groupComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.groupComboBox.FormattingEnabled = true;
this.groupComboBox.Location = new System.Drawing.Point(157, 58);
this.groupComboBox.Name = "groupComboBox";
this.groupComboBox.Size = new System.Drawing.Size(206, 21);
this.groupComboBox.TabIndex = 12;
this.groupComboBox.SelectedIndexChanged += new System.EventHandler(this.groupComboBox_SelectedIndexChanged);
//
// udpRadioButton
//
this.udpRadioButton.AutoSize = true;
this.udpRadioButton.Location = new System.Drawing.Point(209, 9);
resources.ApplyResources(this.udpRadioButton, "udpRadioButton");
this.udpRadioButton.Name = "udpRadioButton";
this.udpRadioButton.Size = new System.Drawing.Size(48, 17);
this.udpRadioButton.TabIndex = 14;
this.udpRadioButton.Text = "UDP";
this.udpRadioButton.UseVisualStyleBackColor = true;
//
// tcpRadioButton
//
this.tcpRadioButton.AutoSize = true;
resources.ApplyResources(this.tcpRadioButton, "tcpRadioButton");
this.tcpRadioButton.Checked = true;
this.tcpRadioButton.Location = new System.Drawing.Point(157, 9);
this.tcpRadioButton.Name = "tcpRadioButton";
this.tcpRadioButton.Size = new System.Drawing.Size(46, 17);
this.tcpRadioButton.TabIndex = 15;
this.tcpRadioButton.TabStop = true;
this.tcpRadioButton.Text = "TCP";
this.tcpRadioButton.UseVisualStyleBackColor = true;
this.tcpRadioButton.CheckedChanged += new System.EventHandler(this.tcpRadioButton_CheckedChanged);
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(12, 9);
resources.ApplyResources(this.label7, "label7");
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(46, 13);
this.label7.TabIndex = 16;
this.label7.Text = "Protocol";
//
// AddRelayMapForm
//
this.AcceptButton = this.okButton;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.cancelButton;
this.ClientSize = new System.Drawing.Size(375, 228);
this.Controls.Add(this.udpRadioButton);
this.Controls.Add(this.tcpRadioButton);
this.Controls.Add(this.label7);
@@ -278,12 +205,9 @@
this.Controls.Add(this.okButton);
this.Controls.Add(this.cancelButton);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "AddRelayMapForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Relay Mapping";
this.Load += new System.EventHandler(this.AddRelayMapForm_Load);
((System.ComponentModel.ISupportInitialize)(this.localNumericUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.remoteNumericUpDown)).EndInit();