diff --git a/src/kbhelper/Program.cs b/src/kbhelper/Program.cs
index 128e764d..64bc45f9 100644
--- a/src/kbhelper/Program.cs
+++ b/src/kbhelper/Program.cs
@@ -28,6 +28,16 @@ private static void CheckLibrary()
}
}
+ ///
+ /// Initializes and shows the main form of the application.
+ ///
+ private static void ShowMainForm()
+ {
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+ Application.Run(new FrmKBHelper());
+ }
+
///
/// The main entry point for the application.
///
@@ -43,9 +53,7 @@ private static void Main()
{
if (Mtx.WaitOne(0, false))
{
- Application.EnableVisualStyles();
- Application.SetCompatibleTextRenderingDefault(false);
- Application.Run(new FrmKBHelper());
+ ShowMainForm();
}
else
{