public void MouseDown(Point point, bool isLeftButton) { if (_currentPolyLine == null) { _currentPolyLine = new ScenePolyLine(); } _currentPolyLine.AddPoint(point); SceneObjecDrawing?.Invoke(this, _currentPolyLine); if (isLeftButton == false) { SceneObjectCreated?.Invoke(this, _currentPolyLine); _currentPolyLine = null; } }
public void MouseMove(Point point) { _currentPolyLine?.UpdateLastPoint(point); SceneObjecDrawing?.Invoke(this, _currentPolyLine); }