public void AddProcess(Process p, KeySwitchMethod switchmethod) { if (p != null && p.processKeyActions != null) { if (switchmethod.In(KeySwitchMethod.Switch, KeySwitchMethod.TempOverwrite, KeySwitchMethod.TempSwitch)) { throw new NotImplementedException("Don't make a fus, implement your bus."); } foreach (KeyAction a in p.processKeyActions.Keys) { Keybinds[p.processKeyActions[a]] = a; } } }