public void UnregisterPixelTool(string key) { if (PixelToolDict.ContainsKey(key)) { ShortcutsMapping.UnregisterShortcutsKey(PixelToolDict[key].KeyCode); PixelToolDict.Remove(key); } }
public void RegisterPixelTool(string key, PixelToolBase tool) { PixelToolDict[key] = tool; ShortcutsMapping.RegisterShortcutsKey(tool.KeyCode, tool); }