Example #1
0
        public static void SetLocationStateValue(string locationStateKey, string LocationStateName, object locationStateValue)
        {
            LocationState locationState = GetLocationState(locationStateKey);

            if (locationState.ContainsKey(LocationStateName))
            {
                locationState[LocationStateName] = locationStateValue;
            }
            else
            {
                locationState.Add(LocationStateName, locationStateValue);
            }
        }
Example #2
0
        public static object GetLocationStateValue(string locationStateKey, string LocationStateName)
        {
            object        returnData;
            LocationState locationState = GetLocationState(locationStateKey);

            if (locationState.ContainsKey(LocationStateName))
            {
                returnData = locationState[LocationStateName];
            }
            else
            {
                locationState.Add(LocationStateName, null);
                returnData = locationState[LocationStateName];
            }

            return(returnData);
        }