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