예제 #1
0
        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;
            }
        }
예제 #2
0
 public void MouseMove(Point point)
 {
     _currentPolyLine?.UpdateLastPoint(point);
     SceneObjecDrawing?.Invoke(this, _currentPolyLine);
 }