From 9d60c3bc77b260486f9caa48723679f1c2b150ba Mon Sep 17 00:00:00 2001 From: Mikhail Denisenko Date: Tue, 22 Oct 2013 01:28:25 -0400 Subject: [PATCH] Translated DBSelectionForm to English --- CutOptima/DBSelectionForm.Designer.cs | 45 ++---- CutOptima/DBSelectionForm.resx | 189 ++++++++++++++++++++++++++ 2 files changed, 197 insertions(+), 37 deletions(-) diff --git a/CutOptima/DBSelectionForm.Designer.cs b/CutOptima/DBSelectionForm.Designer.cs index 8ac839a..b616572 100644 --- a/CutOptima/DBSelectionForm.Designer.cs +++ b/CutOptima/DBSelectionForm.Designer.cs @@ -28,6 +28,7 @@ protected override void Dispose(bool disposing) /// private void InitializeComponent() { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DBSelectionForm)); this.newButton = new System.Windows.Forms.Button(); this.okButton = new System.Windows.Forms.Button(); this.databasesListBox = new System.Windows.Forms.ListBox(); @@ -38,83 +39,55 @@ private void InitializeComponent() // // newButton // - this.newButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.newButton.Location = new System.Drawing.Point(178, 231); + resources.ApplyResources(this.newButton, "newButton"); this.newButton.Name = "newButton"; - this.newButton.Size = new System.Drawing.Size(75, 23); - this.newButton.TabIndex = 2; - this.newButton.Text = "Новая..."; this.newButton.UseVisualStyleBackColor = true; this.newButton.Click += new System.EventHandler(this.newButton_Click); // // okButton // - this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + resources.ApplyResources(this.okButton, "okButton"); this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK; - this.okButton.Location = new System.Drawing.Point(259, 231); this.okButton.Name = "okButton"; - this.okButton.Size = new System.Drawing.Size(75, 23); - this.okButton.TabIndex = 3; - this.okButton.Text = "ОК"; this.okButton.UseVisualStyleBackColor = true; this.okButton.Click += new System.EventHandler(this.okButton_Click); // // databasesListBox // - this.databasesListBox.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.databasesListBox, "databasesListBox"); this.databasesListBox.FormattingEnabled = true; - this.databasesListBox.Location = new System.Drawing.Point(12, 12); this.databasesListBox.Name = "databasesListBox"; - this.databasesListBox.Size = new System.Drawing.Size(399, 199); - this.databasesListBox.TabIndex = 0; this.databasesListBox.DoubleClick += new System.EventHandler(this.databasesListBox_DoubleClick); // // addButton // - this.addButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + resources.ApplyResources(this.addButton, "addButton"); this.addButton.Cursor = System.Windows.Forms.Cursors.Arrow; - this.addButton.Location = new System.Drawing.Point(97, 231); this.addButton.Name = "addButton"; - this.addButton.Size = new System.Drawing.Size(75, 23); - this.addButton.TabIndex = 1; - this.addButton.Text = "Добавить..."; this.addButton.UseVisualStyleBackColor = true; this.addButton.Click += new System.EventHandler(this.addButton_Click); // // buttonCancel // - this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + resources.ApplyResources(this.buttonCancel, "buttonCancel"); this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.buttonCancel.Location = new System.Drawing.Point(339, 231); - this.buttonCancel.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.buttonCancel.Name = "buttonCancel"; - this.buttonCancel.Size = new System.Drawing.Size(75, 23); - this.buttonCancel.TabIndex = 4; - this.buttonCancel.Text = "Отмена"; this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); // // buttonRemove // - this.buttonRemove.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.buttonRemove.Location = new System.Drawing.Point(16, 231); - this.buttonRemove.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + resources.ApplyResources(this.buttonRemove, "buttonRemove"); this.buttonRemove.Name = "buttonRemove"; - this.buttonRemove.Size = new System.Drawing.Size(75, 23); - this.buttonRemove.TabIndex = 5; - this.buttonRemove.Text = "Убрать"; this.buttonRemove.UseVisualStyleBackColor = true; this.buttonRemove.Click += new System.EventHandler(this.buttonRemove_Click); // // DBSelectionForm // 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.buttonCancel; - this.ClientSize = new System.Drawing.Size(423, 266); this.Controls.Add(this.buttonRemove); this.Controls.Add(this.buttonCancel); this.Controls.Add(this.addButton); @@ -122,8 +95,6 @@ private void InitializeComponent() this.Controls.Add(this.newButton); this.Controls.Add(this.databasesListBox); this.Name = "DBSelectionForm"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; - this.Text = "Выберите базу"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.DBSelectionForm_FormClosing); this.ResumeLayout(false); diff --git a/CutOptima/DBSelectionForm.resx b/CutOptima/DBSelectionForm.resx index 19dc0dd..70a945c 100644 --- a/CutOptima/DBSelectionForm.resx +++ b/CutOptima/DBSelectionForm.resx @@ -117,4 +117,193 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Bottom, Right + + + + 178, 231 + + + 75, 23 + + + + 2 + + + New... + + + newButton + + + System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 4 + + + Bottom, Right + + + 259, 231 + + + 75, 23 + + + 3 + + + ОК + + + okButton + + + System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 3 + + + Top, Bottom, Left, Right + + + 12, 12 + + + 399, 199 + + + 0 + + + databasesListBox + + + System.Windows.Forms.ListBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 5 + + + Bottom, Right + + + 97, 231 + + + 75, 23 + + + 1 + + + Add... + + + addButton + + + System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 2 + + + Bottom, Right + + + 339, 231 + + + 2, 2, 2, 2 + + + 75, 23 + + + 4 + + + Cancel + + + buttonCancel + + + System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 1 + + + Bottom, Right + + + 16, 231 + + + 2, 2, 2, 2 + + + 75, 23 + + + 5 + + + Remove + + + buttonRemove + + + System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 0 + + + True + + + 6, 13 + + + 423, 266 + + + CenterParent + + + Choose Database + + + DBSelectionForm + + + System.Windows.Forms.Form, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + \ No newline at end of file