/// <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); }
/// <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); }
/// <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); }