IDiagramController.cs 891 B

12345678910111213141516171819202122232425
  1. using System.Windows;
  2. namespace SHJX.Service.WorkFlowEdit
  3. {
  4. public interface IDiagramController
  5. {
  6. /// <summary>
  7. /// Is called when user move/resize an item
  8. /// </summary>
  9. /// <param name="items">Selected items</param>
  10. /// <param name="bounds">New item bounds</param>
  11. void UpdateItemsBounds(DiagramItem[] items, Rect[] bounds);
  12. /// <summary>
  13. /// Is called when user create a link between items
  14. /// </summary>
  15. /// <param name="initialState">the state of the link before user action</param>
  16. /// <param name="link">Link in the current state</param>
  17. void UpdateLink(LinkInfo initialState, ILink link);
  18. void ExecuteCommand(System.Windows.Input.ICommand command, object parameter);
  19. bool CanExecuteCommand(System.Windows.Input.ICommand command, object parameter);
  20. }
  21. }