Skip to content

Commit 5fa4acc

Browse files
author
Sébastien Geiser
committed
Refactoring
1 parent 642163a commit 5fa4acc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CSharpRegexTools4Npp/Main.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public static void ShowTheDialog()
160160
{
161161
AppDomain.CurrentDomain.SetupInformation.PrivateBinPath = @"plugins\CSharpRegexTools4Npp";
162162

163-
IntPtr hWnd = FindWindow(null, "C# Regex Tools - " + Assembly.GetExecutingAssembly().GetName().Version.ToString());
163+
IntPtr hWnd = FindWindow(null, $"C# Regex Tools - {Assembly.GetExecutingAssembly().GetName().Version}");
164164

165165
if (hWnd.ToInt64() > 0)
166166
{
@@ -231,7 +231,7 @@ public static void ShowTheDialog()
231231
result = false;
232232
}
233233

234-
hWnd = FindWindow(null, "C# Regex Tool - " + Assembly.GetExecutingAssembly().GetName().Version.ToString());
234+
hWnd = FindWindow(null, $"C# Regex Tool - {Assembly.GetExecutingAssembly().GetName().Version}");
235235
if (hWnd.ToInt64() > 0)
236236
{
237237
SetForegroundWindow(hWnd);

RegexDialog/Utils/Config.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
namespace RegexDialog
99
{
10-
public class Config : NotifyPropertyChangedBaseClass
10+
public sealed class Config : NotifyPropertyChangedBaseClass
1111
{
1212
#region Json singleton
1313

0 commit comments

Comments
 (0)