set AcceptButton and CancelButton for forms that have those controls (#29)

This commit is contained in:
Andrew DeLisa 2019-01-02 16:51:55 -05:00 committed by GrapeshotGames
parent c8c4c54884
commit 8322467eeb
13 changed files with 48 additions and 13 deletions

View file

@ -156,6 +156,7 @@
// //
// cancelBtn // cancelBtn
// //
this.cancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancelBtn.Location = new System.Drawing.Point(415, 565); this.cancelBtn.Location = new System.Drawing.Point(415, 565);
this.cancelBtn.Name = "cancelBtn"; this.cancelBtn.Name = "cancelBtn";
this.cancelBtn.Size = new System.Drawing.Size(118, 32); this.cancelBtn.Size = new System.Drawing.Size(118, 32);
@ -187,6 +188,7 @@
// //
// addSublevels // addSublevels
// //
this.addSublevels.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.addSublevels.Location = new System.Drawing.Point(96, 295); this.addSublevels.Location = new System.Drawing.Point(96, 295);
this.addSublevels.Name = "addSublevels"; this.addSublevels.Name = "addSublevels";
this.addSublevels.Size = new System.Drawing.Size(90, 24); this.addSublevels.Size = new System.Drawing.Size(90, 24);
@ -365,8 +367,10 @@
// //
// CreateIslndForm // CreateIslndForm
// //
this.AcceptButton = this.createBtn;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.cancelBtn;
this.ClientSize = new System.Drawing.Size(609, 619); this.ClientSize = new System.Drawing.Size(609, 619);
this.Controls.Add(this.instancesListBox); this.Controls.Add(this.instancesListBox);
this.Controls.Add(this.label12); this.Controls.Add(this.label12);

View file

@ -192,6 +192,7 @@
// //
// cancelBtn // cancelBtn
// //
this.cancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancelBtn.Location = new System.Drawing.Point(340, 717); this.cancelBtn.Location = new System.Drawing.Point(340, 717);
this.cancelBtn.Name = "cancelBtn"; this.cancelBtn.Name = "cancelBtn";
this.cancelBtn.Size = new System.Drawing.Size(83, 32); this.cancelBtn.Size = new System.Drawing.Size(83, 32);
@ -879,8 +880,10 @@
// //
// CreateProjectForm // CreateProjectForm
// //
this.AcceptButton = this.createBtn;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.cancelBtn;
this.ClientSize = new System.Drawing.Size(702, 766); this.ClientSize = new System.Drawing.Size(702, 766);
this.Controls.Add(this.label11); this.Controls.Add(this.label11);
this.Controls.Add(this.columnUTCOffsetTxtBox); this.Controls.Add(this.columnUTCOffsetTxtBox);

View file

@ -53,6 +53,7 @@
// cancelBtn // cancelBtn
// //
this.cancelBtn.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.cancelBtn.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
this.cancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancelBtn.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F); this.cancelBtn.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F);
this.cancelBtn.Location = new System.Drawing.Point(512, 489); this.cancelBtn.Location = new System.Drawing.Point(512, 489);
this.cancelBtn.Name = "cancelBtn"; this.cancelBtn.Name = "cancelBtn";
@ -210,8 +211,10 @@
// //
// EditDiscoZonesForm // EditDiscoZonesForm
// //
this.AcceptButton = this.saveBtn;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.cancelBtn;
this.ClientSize = new System.Drawing.Size(1030, 536); this.ClientSize = new System.Drawing.Size(1030, 536);
this.Controls.Add(this.discoZonesGrid); this.Controls.Add(this.discoZonesGrid);
this.Controls.Add(this.cancelBtn); this.Controls.Add(this.cancelBtn);

View file

@ -49,6 +49,7 @@
// //
// cancelBtn // cancelBtn
// //
this.cancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancelBtn.Location = new System.Drawing.Point(119, 238); this.cancelBtn.Location = new System.Drawing.Point(119, 238);
this.cancelBtn.Name = "cancelBtn"; this.cancelBtn.Name = "cancelBtn";
this.cancelBtn.Size = new System.Drawing.Size(92, 32); this.cancelBtn.Size = new System.Drawing.Size(92, 32);
@ -195,8 +196,10 @@
// //
// EditDiscoveryZoneInstance // EditDiscoveryZoneInstance
// //
this.AcceptButton = this.saveBtn;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.cancelBtn;
this.ClientSize = new System.Drawing.Size(224, 279); this.ClientSize = new System.Drawing.Size(224, 279);
this.Controls.Add(this.allowSeaCheckbox); this.Controls.Add(this.allowSeaCheckbox);
this.Controls.Add(this.explorerNoteIndexTxt); this.Controls.Add(this.explorerNoteIndexTxt);

View file

@ -101,6 +101,7 @@
// //
// cancelBtn // cancelBtn
// //
this.cancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancelBtn.Location = new System.Drawing.Point(192, 612); this.cancelBtn.Location = new System.Drawing.Point(192, 612);
this.cancelBtn.Name = "cancelBtn"; this.cancelBtn.Name = "cancelBtn";
this.cancelBtn.Size = new System.Drawing.Size(92, 32); this.cancelBtn.Size = new System.Drawing.Size(92, 32);
@ -255,8 +256,10 @@
// //
// EditIslandInstance // EditIslandInstance
// //
this.AcceptButton = this.saveBtn;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.cancelBtn;
this.ClientSize = new System.Drawing.Size(347, 660); this.ClientSize = new System.Drawing.Size(347, 660);
this.Controls.Add(this.label10); this.Controls.Add(this.label10);
this.Controls.Add(this.instanceTreasureQualityAdditionTxtBox); this.Controls.Add(this.instanceTreasureQualityAdditionTxtBox);

View file

@ -151,6 +151,7 @@
// //
// cancelBtn // cancelBtn
// //
this.cancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancelBtn.Location = new System.Drawing.Point(107, 679); this.cancelBtn.Location = new System.Drawing.Point(107, 679);
this.cancelBtn.Name = "cancelBtn"; this.cancelBtn.Name = "cancelBtn";
this.cancelBtn.Size = new System.Drawing.Size(96, 32); this.cancelBtn.Size = new System.Drawing.Size(96, 32);
@ -667,8 +668,10 @@
// //
// EditServerForm // EditServerForm
// //
this.AcceptButton = this.saveBtn;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.cancelBtn;
this.ClientSize = new System.Drawing.Size(667, 762); this.ClientSize = new System.Drawing.Size(667, 762);
this.Controls.Add(this.OceanEpicSpawnEntriesOverrideValuesTxtBox); this.Controls.Add(this.OceanEpicSpawnEntriesOverrideValuesTxtBox);
this.Controls.Add(this.label31); this.Controls.Add(this.label31);

View file

@ -100,6 +100,7 @@
// //
// cancelBtn // cancelBtn
// //
this.cancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancelBtn.Location = new System.Drawing.Point(182, 717); this.cancelBtn.Location = new System.Drawing.Point(182, 717);
this.cancelBtn.Name = "cancelBtn"; this.cancelBtn.Name = "cancelBtn";
this.cancelBtn.Size = new System.Drawing.Size(96, 32); this.cancelBtn.Size = new System.Drawing.Size(96, 32);
@ -565,8 +566,10 @@
// //
// EditServerTemplate // EditServerTemplate
// //
this.AcceptButton = this.saveBtn;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.cancelBtn;
this.ClientSize = new System.Drawing.Size(667, 770); this.ClientSize = new System.Drawing.Size(667, 770);
this.Controls.Add(this.OceanEpicSpawnEntriesOverrideValuesTxtBox); this.Controls.Add(this.OceanEpicSpawnEntriesOverrideValuesTxtBox);
this.Controls.Add(this.label1); this.Controls.Add(this.label1);

View file

@ -120,6 +120,7 @@
// //
// EditShipPath // EditShipPath
// //
this.AcceptButton = this.applyBtn;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(359, 216); this.ClientSize = new System.Drawing.Size(359, 216);

View file

@ -29,10 +29,10 @@
private void InitializeComponent() private void InitializeComponent()
{ {
this.spawnRegionsGrid = new System.Windows.Forms.DataGridView(); this.spawnRegionsGrid = new System.Windows.Forms.DataGridView();
this.cancelBtn = new System.Windows.Forms.Button();
this.saveBtn = new System.Windows.Forms.Button();
this.regionName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.regionName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.regionParent = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.regionParent = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.cancelBtn = new System.Windows.Forms.Button();
this.saveBtn = new System.Windows.Forms.Button();
this.messageLabel = new System.Windows.Forms.Label(); this.messageLabel = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.spawnRegionsGrid)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.spawnRegionsGrid)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
@ -99,8 +99,10 @@
// //
// EditSpawnRegions // EditSpawnRegions
// //
this.AcceptButton = this.saveBtn;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.cancelBtn;
this.ClientSize = new System.Drawing.Size(374, 419); this.ClientSize = new System.Drawing.Size(374, 419);
this.Controls.Add(this.messageLabel); this.Controls.Add(this.messageLabel);
this.Controls.Add(this.cancelBtn); this.Controls.Add(this.cancelBtn);

View file

@ -29,7 +29,7 @@
private void InitializeComponent() private void InitializeComponent()
{ {
this.lockIslandsChkbox = new System.Windows.Forms.CheckBox(); this.lockIslandsChkbox = new System.Windows.Forms.CheckBox();
this.button1 = new System.Windows.Forms.Button(); this.applyBtn = new System.Windows.Forms.Button();
this.lockDiscoChckbox = new System.Windows.Forms.CheckBox(); this.lockDiscoChckbox = new System.Windows.Forms.CheckBox();
this.lockShipPathsChckbox = new System.Windows.Forms.CheckBox(); this.lockShipPathsChckbox = new System.Windows.Forms.CheckBox();
this.SuspendLayout(); this.SuspendLayout();
@ -46,15 +46,15 @@
this.lockIslandsChkbox.Text = "Lock Islands"; this.lockIslandsChkbox.Text = "Lock Islands";
this.lockIslandsChkbox.UseVisualStyleBackColor = true; this.lockIslandsChkbox.UseVisualStyleBackColor = true;
// //
// button1 // applyBtn
// //
this.button1.Location = new System.Drawing.Point(68, 140); this.applyBtn.Location = new System.Drawing.Point(68, 140);
this.button1.Name = "button1"; this.applyBtn.Name = "applyBtn";
this.button1.Size = new System.Drawing.Size(75, 23); this.applyBtn.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 1; this.applyBtn.TabIndex = 1;
this.button1.Text = "Apply"; this.applyBtn.Text = "Apply";
this.button1.UseVisualStyleBackColor = true; this.applyBtn.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click); this.applyBtn.Click += new System.EventHandler(this.button1_Click);
// //
// lockDiscoChckbox // lockDiscoChckbox
// //
@ -82,12 +82,13 @@
// //
// LocksForm // LocksForm
// //
this.AcceptButton = this.applyBtn;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(217, 189); this.ClientSize = new System.Drawing.Size(217, 189);
this.Controls.Add(this.lockShipPathsChckbox); this.Controls.Add(this.lockShipPathsChckbox);
this.Controls.Add(this.lockDiscoChckbox); this.Controls.Add(this.lockDiscoChckbox);
this.Controls.Add(this.button1); this.Controls.Add(this.applyBtn);
this.Controls.Add(this.lockIslandsChkbox); this.Controls.Add(this.lockIslandsChkbox);
this.Name = "LocksForm"; this.Name = "LocksForm";
this.ShowIcon = false; this.ShowIcon = false;
@ -102,7 +103,7 @@
#endregion #endregion
private System.Windows.Forms.CheckBox lockIslandsChkbox; private System.Windows.Forms.CheckBox lockIslandsChkbox;
private System.Windows.Forms.Button button1; private System.Windows.Forms.Button applyBtn;
private System.Windows.Forms.CheckBox lockDiscoChckbox; private System.Windows.Forms.CheckBox lockDiscoChckbox;
private System.Windows.Forms.CheckBox lockShipPathsChckbox; private System.Windows.Forms.CheckBox lockShipPathsChckbox;
} }

View file

@ -52,6 +52,7 @@
// //
// cancelBtn // cancelBtn
// //
this.cancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancelBtn.Location = new System.Drawing.Point(274, 362); this.cancelBtn.Location = new System.Drawing.Point(274, 362);
this.cancelBtn.Name = "cancelBtn"; this.cancelBtn.Name = "cancelBtn";
this.cancelBtn.Size = new System.Drawing.Size(90, 32); this.cancelBtn.Size = new System.Drawing.Size(90, 32);
@ -221,8 +222,10 @@
// //
// SharedLogConfigForm // SharedLogConfigForm
// //
this.AcceptButton = this.saveBtn;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.cancelBtn;
this.ClientSize = new System.Drawing.Size(472, 417); this.ClientSize = new System.Drawing.Size(472, 417);
this.Controls.Add(this.snapExpHoursTxtBox); this.Controls.Add(this.snapExpHoursTxtBox);
this.Controls.Add(this.label13); this.Controls.Add(this.label13);

View file

@ -42,6 +42,7 @@
// //
// cancelBtn // cancelBtn
// //
this.cancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancelBtn.Location = new System.Drawing.Point(274, 249); this.cancelBtn.Location = new System.Drawing.Point(274, 249);
this.cancelBtn.Name = "cancelBtn"; this.cancelBtn.Name = "cancelBtn";
this.cancelBtn.Size = new System.Drawing.Size(90, 32); this.cancelBtn.Size = new System.Drawing.Size(90, 32);
@ -135,8 +136,10 @@
// //
// TravelDataConfigForm // TravelDataConfigForm
// //
this.AcceptButton = this.saveBtn;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.cancelBtn;
this.ClientSize = new System.Drawing.Size(502, 304); this.ClientSize = new System.Drawing.Size(502, 304);
this.Controls.Add(this.s3KeyPrefixTxtBox); this.Controls.Add(this.s3KeyPrefixTxtBox);
this.Controls.Add(this.httpApiKeyTxtBox); this.Controls.Add(this.httpApiKeyTxtBox);

View file

@ -46,6 +46,7 @@
// //
// cancelBtn // cancelBtn
// //
this.cancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancelBtn.Location = new System.Drawing.Point(274, 351); this.cancelBtn.Location = new System.Drawing.Point(274, 351);
this.cancelBtn.Name = "cancelBtn"; this.cancelBtn.Name = "cancelBtn";
this.cancelBtn.Size = new System.Drawing.Size(90, 32); this.cancelBtn.Size = new System.Drawing.Size(90, 32);
@ -167,8 +168,10 @@
// //
// TribeLogConfigForm // TribeLogConfigForm
// //
this.AcceptButton = this.saveBtn;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.cancelBtn;
this.ClientSize = new System.Drawing.Size(482, 404); this.ClientSize = new System.Drawing.Size(482, 404);
this.Controls.Add(this.maxRedisLinesTxtBox); this.Controls.Add(this.maxRedisLinesTxtBox);
this.Controls.Add(this.label10); this.Controls.Add(this.label10);