ToolManager.cs 620 B

1234567891011121314151617181920212223242526272829
  1. using PixiEditor.Helpers;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace PixiEditor.Models.Tools
  9. {
  10. class ToolManager : NotifyableObject
  11. {
  12. private ToolType _activeTool;
  13. public ToolType ActiveTool
  14. {
  15. get { return _activeTool; }
  16. set
  17. {
  18. if (_activeTool != value)
  19. {
  20. _activeTool = value;
  21. RaisePropertyChanged("ActiveTool");
  22. }
  23. }
  24. }
  25. }
  26. }