From 01aa8bd75441b62b01a063aaadbe09f0a0755b74 Mon Sep 17 00:00:00 2001
From: Lior Banai <36262995+LiorBanai@users.noreply.github.com>
Date: Fri, 30 Oct 2020 21:46:31 +0200
Subject: [PATCH] fix close buttons actions
---
Analogy/Analogy.csproj | 2 +-
Analogy/Forms/AnalogyAboutBox.Designer.cs | 3 +++
Analogy/Forms/AnalogyAboutBox.cs | 4 ++++
3 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/Analogy/Analogy.csproj b/Analogy/Analogy.csproj
index 19c47e78..65a99f4e 100644
--- a/Analogy/Analogy.csproj
+++ b/Analogy/Analogy.csproj
@@ -25,7 +25,7 @@
https://github.com/Analogy-LogViewer/Analogy.LogViewer
git
- 4.2.14
+ 4.3.0
Lior Banai © 2020
Analogy Log Viewer
diff --git a/Analogy/Forms/AnalogyAboutBox.Designer.cs b/Analogy/Forms/AnalogyAboutBox.Designer.cs
index 3a882fab..62c5fe41 100644
--- a/Analogy/Forms/AnalogyAboutBox.Designer.cs
+++ b/Analogy/Forms/AnalogyAboutBox.Designer.cs
@@ -201,12 +201,14 @@ private void InitializeComponent()
//
// btnOK
//
+ this.btnOK.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.btnOK.Dock = System.Windows.Forms.DockStyle.Right;
this.btnOK.Location = new System.Drawing.Point(973, 367);
this.btnOK.Name = "btnOK";
this.btnOK.Size = new System.Drawing.Size(66, 39);
this.btnOK.TabIndex = 26;
this.btnOK.Text = "OK";
+ this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
//
// xtraTabControl1
//
@@ -543,6 +545,7 @@ private void InitializeComponent()
this.AcceptButton = this.btnOK;
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.CancelButton = this.btnOK;
this.ClientSize = new System.Drawing.Size(1069, 465);
this.Controls.Add(this.xtraTabControl1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
diff --git a/Analogy/Forms/AnalogyAboutBox.cs b/Analogy/Forms/AnalogyAboutBox.cs
index 3f74ec86..3215be17 100644
--- a/Analogy/Forms/AnalogyAboutBox.cs
+++ b/Analogy/Forms/AnalogyAboutBox.cs
@@ -92,5 +92,9 @@ public string AssemblyCompany
}
#endregion
+ private void btnOK_Click(object sender, EventArgs e)
+ {
+ Close();
+ }
}
}