Use Accept and Cancellation buttons where appropriate

This commit is contained in:
Luke Anderson 2017-11-01 20:36:07 +10:30
parent e35b7c299d
commit 81f5868232
20 changed files with 29 additions and 0 deletions

View file

@ -139,9 +139,11 @@ private void InitializeComponent()
//
// GradientPickerForm
//
this.AcceptButton = this.btnOK;
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Window;
this.CancelButton = this.btnCancel;
this.Controls.Add(this.pbPreview);
this.Controls.Add(this.lblPreview);
this.Controls.Add(this.btnCancel);

View file

@ -129,9 +129,11 @@ private void InitializeComponent()
//
// DNSChangerForm
//
this.AcceptButton = this.btnSave;
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Window;
this.CancelButton = this.btnCancel;
this.Controls.Add(this.btnPingSecondary);
this.Controls.Add(this.btnPingPrimary);
this.Controls.Add(this.cbAutomatic);

View file

@ -94,6 +94,7 @@ private void InitializeComponent()
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Window;
this.CancelButton = this.btnCancel;
this.Controls.Add(this.pbClipboard);
this.Controls.Add(this.cbDontShowThisWindow);
this.Controls.Add(this.btnCancel);

View file

@ -103,9 +103,11 @@ private void InitializeComponent()
//
// ErrorForm
//
this.AcceptButton = this.btnContinue;
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Window;
this.CancelButton = this.btnClose;
this.Controls.Add(this.lblErrorMessage);
this.Controls.Add(this.flpMenu);
this.Controls.Add(this.txtException);

View file

@ -100,9 +100,11 @@ private void InitializeComponent()
//
// PrintForm
//
this.AcceptButton = this.btnPrint;
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Window;
this.CancelButton = this.btnCancel;
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.btnPrint);
this.Controls.Add(this.btnShowPreview);

View file

@ -231,6 +231,7 @@ private void InitializeComponent()
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Window;
this.CancelButton = this.btnClose;
this.Controls.Add(this.btnClose);
this.Controls.Add(this.txtPresetName);
this.Controls.Add(this.lblPresetName);

View file

@ -135,6 +135,7 @@ private void InitializeComponent()
//
// ImageCombinerForm
//
this.AcceptButton = this.btnCombine;
this.AllowDrop = true;
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;

View file

@ -157,6 +157,7 @@ private void InitializeComponent()
//
// ImageThumbnailerForm
//
this.AcceptButton = this.btnGenerate;
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.btnOutputFolder);

View file

@ -141,9 +141,11 @@ private void InitializeComponent()
//
// CanvasSizeForm
//
this.AcceptButton = this.btnOK;
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Window;
this.CancelButton = this.btnCancel;
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.btnOK);
this.Controls.Add(this.lblBottom);

View file

@ -107,9 +107,11 @@ private void InitializeComponent()
//
// ImageSizeForm
//
this.AcceptButton = this.btnOK;
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Window;
this.CancelButton = this.btnCancel;
this.Controls.Add(this.lblHeightPixels);
this.Controls.Add(this.lblWidthPixels);
this.Controls.Add(this.btnCancel);

View file

@ -531,6 +531,7 @@ private void InitializeComponent()
//
// ScrollingCaptureForm
//
this.AcceptButton = this.btnCapture;
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Window;

View file

@ -107,6 +107,7 @@ private void InitializeComponent()
//
// PuushLoginForm
//
this.AcceptButton = this.btnLogin;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Window;

View file

@ -64,9 +64,11 @@ private void InitializeComponent()
//
// TwitterTweetForm
//
this.AcceptButton = this.btnOK;
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Window;
this.CancelButton = this.btnCancel;
this.Controls.Add(this.txtTweet);
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.btnOK);

View file

@ -128,6 +128,7 @@ private void InitializeComponent()
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Window;
this.CancelButton = this.btnCancel;
this.Controls.Add(this.cbHiddenWindow);
this.Controls.Add(this.lblOutputExtension);
this.Controls.Add(this.txtOutputExtension);

View file

@ -129,6 +129,7 @@ private void InitializeComponent()
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Window;
this.CancelButton = this.btnClose;
this.Controls.Add(this.lvClipboardFormats);
this.Controls.Add(this.btnClose);
this.Controls.Add(this.btnOpenLink);

View file

@ -79,9 +79,11 @@ private void InitializeComponent()
//
// ClipboardFormatForm
//
this.AcceptButton = this.btnOK;
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Window;
this.CancelButton = this.btnCancel;
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.btnOK);
this.Controls.Add(this.lblExample);

View file

@ -109,6 +109,7 @@ private void InitializeComponent()
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Window;
this.CancelButton = this.btnCancel;
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.btnOK);
this.Controls.Add(this.btnPathBrowse);

View file

@ -105,6 +105,7 @@ private void InitializeComponent()
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Window;
this.CancelButton = this.btnClose;
this.Controls.Add(this.lblTip);
this.Controls.Add(this.btnClose);
this.Controls.Add(this.btnReset);

View file

@ -69,8 +69,10 @@ private void InitializeComponent()
//
// TextUploadForm
//
this.AcceptButton = this.btnUpload;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.btnCancel;
this.ClientSize = new System.Drawing.Size(632, 520);
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.btnUpload);

View file

@ -98,6 +98,7 @@ private void InitializeComponent()
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Window;
this.CancelButton = this.btnCancel;
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.btnOK);
this.Controls.Add(this.cbIncludeSubdirectories);