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.Share/Util/SystemStorage.cs | 76 ++++++++++++++++++++++++++++++++++++++
1 files changed, 76 insertions(+), 0 deletions(-)
diff --git a/HotelPms.Share/Util/SystemStorage.cs b/HotelPms.Share/Util/SystemStorage.cs
new file mode 100644
index 0000000..f7cd3e3
--- /dev/null
+++ b/HotelPms.Share/Util/SystemStorage.cs
@@ -0,0 +1,76 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace HotelPms.Share.Util
+{
+ /// ****************************** Description *******************************
+ /// ���V�X�e������
+ /// �@�ėp�N���X
+ /// ���T�v
+ /// �@�V�X�e�����ʕϐ��i�[�p
+ /// ������
+ /// �@20070803 ���@���� �V�K�쐬
+ /// ****************************** Declarations ******************************
+ public class SystemStorage
+ {
+ private static SystemStorage? systemStorage;
+ private Dictionary<string,object> dictionary;
+
+ public SystemStorage()
+ {
+ dictionary = new Dictionary<string, object>();
+ }
+
+ ~SystemStorage()
+ {
+ dictionary.Clear();
+ }
+
+ public static SystemStorage Instance()
+ {
+ if (systemStorage == null)
+ {
+ systemStorage = new SystemStorage();
+ }
+ return systemStorage;
+ }
+
+ public void SetItem(string key, object value)
+ {
+ dictionary.Add(key, value);
+ }
+
+ public bool ContainsKey(string key)
+ {
+ return dictionary.ContainsKey(key);
+ }
+
+ public object GetItem(string key)
+ {
+ return dictionary[key];
+ }
+
+ public void ReMoveItem(string key)
+ {
+ try
+ {
+ dictionary.Remove(key);
+ }
+ catch
+ {
+ }
+ }
+
+ public void ReMoveAll()
+ {
+ try
+ {
+ dictionary.Clear();
+ }
+ catch
+ {
+ }
+ }
+ }
+}
--
Gitblit v1.10.0