From 1a1c8e71fcd14858f595029f089b2d4a00202b32 Mon Sep 17 00:00:00 2001
From: ogi <Administrator@S-OGI-PC>
Date: Fri, 05 Dec 2025 09:24:16 +0900
Subject: [PATCH] プロジェクトファイルを追加。

---
 HotelPms.WinApp/Program.cs |   37 +++++++++++++++++++++++++++++++++++++
 1 files changed, 37 insertions(+), 0 deletions(-)

diff --git a/HotelPms.WinApp/Program.cs b/HotelPms.WinApp/Program.cs
new file mode 100644
index 0000000..684d6e2
--- /dev/null
+++ b/HotelPms.WinApp/Program.cs
@@ -0,0 +1,37 @@
+using HotelPms.Share.Windows.Util;
+using HotelPms.WinForm.Common.Util;
+using System.Diagnostics;
+using PmsForm = HotelPms.WinForm.View;
+
+namespace HotelPms.WinApp
+{
+    internal static class Program
+    {
+        /// <summary>
+        ///  The main entry point for the application.
+        /// </summary>
+        [STAThread]
+        static void Main()
+        {
+            UnhandledExceptionListener.Execute();
+            ApplicationConfiguration.Initialize();
+
+            //��d�N�����`�F�b�N����
+            if (Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName).Length > 1)
+            {
+                Application.Exit();
+                return;
+            }
+
+            using (System.Threading.Mutex mutex = new System.Threading.Mutex(false, Application.ProductName))
+            {
+                if (mutex.WaitOne(0, false))
+                {
+                    if (EnvironmentSetting.Init()) { Application.Run(new PmsForm.Menu()); }
+                }
+                GC.KeepAlive(mutex);
+                mutex.Close();
+            }            
+        }
+    }
+}
\ No newline at end of file

--
Gitblit v1.10.0