gView.Plugins.MapTools.Graphics.Freehand.ConstructMouseMove C# (CSharp) Method

ConstructMouseMove() public method

public ConstructMouseMove ( IMapDocument doc, System.Windows.Forms.MouseEventArgs e ) : void
doc IMapDocument
e System.Windows.Forms.MouseEventArgs
return void
        public void ConstructMouseMove(IMapDocument doc, System.Windows.Forms.MouseEventArgs e)
        {
            if (_mousePressed && _addContainer != null && _addContainer.Elements.Count == 1 && ActiveDisplay(doc) != null)
            {
                double x = e.X;
                double y = e.Y;
                ActiveDisplay(doc).Image2World(ref x, ref y);
                ((Freehand)_addContainer.Elements[0]).AddPoint(x, y);

                ActiveDisplay(doc).DrawOverlay(_addContainer, true);
            }
        }