예제 #1
0
        public static bool GetBoolItem(string itemName, bool defaultState)
        {
            if ((UseCache == false) || (cachedItems.ContainsKey(itemName) == false))
            {
                cachedItems[itemName] = StorageMechanism.GetBoolItem(itemName, defaultState);
            }

            return(( bool )cachedItems[itemName]);
        }
예제 #2
0
        public static int GetIntItem(string itemName, int defaultState)
        {
            if ((UseCache == false) || (cachedItems.ContainsKey(itemName) == false))
            {
                cachedItems[itemName] = StorageMechanism.GetIntItem(itemName, defaultState);
            }

            return(( int )cachedItems[itemName]);
        }
예제 #3
0
 public void DeleteItem(string itemName)
 {
     cachedItems.Remove(itemName);
     StorageMechanism.DeleteItem(itemName);
 }
예제 #4
0
 public static void SetIntItem(string itemName, int state)
 {
     cachedItems[itemName] = state;
     StorageMechanism.SetIntItem(itemName, state);
 }
예제 #5
0
 public static void SetBoolItem(string itemName, bool state)
 {
     cachedItems[itemName] = state;
     StorageMechanism.SetBoolItem(itemName, state);
 }