public ArrowCreationSet(NodeControl nodeControl, Point location) { IsAdded = false; NodeControl = nodeControl; ArrowControl = new ArrowControl(nodeControl, null); From = new ArrowNodeSurrogate {Centre = location}; To = new ArrowNodeSurrogate {Centre = location}; Controller = new ArrowController(null, From, To); ArrowControl.DataContext = Controller.ViewModel; }
public ArrowCreationSet(NodeControl nodeControl, Point location) { IsAdded = false; NodeControl = nodeControl; ArrowControl = new ArrowControl(nodeControl, null); From = new ArrowNodeSurrogate { Centre = location }; To = new ArrowNodeSurrogate { Centre = location }; Controller = new ArrowController(null, From, To); ArrowControl.DataContext = Controller.ViewModel; }