private IDiagramCreator GetDiagramCreator() { var creator = new WpfDiagramCreator(); creator.SetThumbEvents = (thumb) => SetThumbEvents(thumb); creator.SetPosition = (element, left, top, snap) => Editor.SetPosition(element, left, top, snap); creator.GetTags = () => Editor.Context.Tags; creator.GetCounter = () => Editor.Context.CurrentCanvas.GetCounter(); creator.SetCanvas(this.DiagramControl.DiagramCanvas); creator.ParserPath = this.DiagramControl.PathGrid; return(creator); }
private IDiagramCreator GetDiagramCreator() { var creator = new WpfDiagramCreator(); creator.SetThumbEvents = (thumb) => SetThumbEvents(thumb); creator.SetPosition = (element, left, top, snap) => Editor.SetPosition(element, left, top, snap); creator.GetTags = () => Editor.Context.Tags; creator.GetCounter = () => Editor.Context.CurrentCanvas.GetCounter(); creator.SetCanvas(this.DiagramControl.DiagramCanvas); creator.ParserPath = this.DiagramControl.PathGrid; return creator; }