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

@ -53,6 +53,7 @@
// cancelBtn
//
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.Location = new System.Drawing.Point(512, 489);
this.cancelBtn.Name = "cancelBtn";
@ -210,8 +211,10 @@
//
// EditDiscoZonesForm
//
this.AcceptButton = this.saveBtn;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.cancelBtn;
this.ClientSize = new System.Drawing.Size(1030, 536);
this.Controls.Add(this.discoZonesGrid);
this.Controls.Add(this.cancelBtn);