Exemplo n.º 1
0
        /// <summary>
        /// Removes a key from the IPC
        /// </summary>
        /// <param name="key">The key to remove</param>
        public static void RemoveKey(string key)
        {
            if (!IPCM.IPC.ContainsKey(key))
            {
                return;
            }

            IPCM.IPC.Remove(key);
            IPCEvents.RunKeyRemoved(key);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Changes a key's value
        /// </summary>
        /// <param name="key">The key to change</param>
        /// <param name="value">The new value of the key</param>
        public static void SetValue(string key, string value)
        {
            if (!IPCM.IPC.ContainsKey(key))
            {
                return;
            }

            IPCM.IPC[key] = value;
            IPCEvents.RunKeyValueChanged(key, value);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Adds a key to the IPC
        /// </summary>
        /// <param name="key">The key to add</param>
        /// <param name="value">The default value of the key</param>
        public static void AddKey(string key, string value)
        {
            if (IPCM.IPC.ContainsKey(key))
            {
                return;
            }

            IPCM.IPC.Add(key, value);
            IPCEvents.RunKeyAdded(key);
        }