void drawtool_VertexAdded(object sender, VertexAddedEventArgs e) { if (clickCount > 0) { if (--clickCount == 0) { draw.CompleteDraw(); clickCount = -1; } } }
// Process points added to the geometry currently being drawn private void drawObject_VertexAdded(object sender, VertexAddedEventArgs e) { // clone the point and add it to the current set of vertices _currentDrawVertices.Add(e.Vertex.Clone()); // Update draw instructions if the 2nd vertex of a polygon has just been added if (AssociatedObject.DrawMode == DrawMode.Polygon && _currentDrawVertices.Count == 2) { PopupText = _drawInstructions = Strings.DrawClickContinueDoubleClickFinish; } }
void MyDrawObject_VertexAdded(object sender, VertexAddedEventArgs e) { System.Diagnostics.Debug.WriteLine("d_VertexAdded {0} - {1}", e.DrawMode, e.Vertex); }
void drawtool_VertexAdded(object sender, VertexAddedEventArgs e) { if (clickCount > 0) if (--clickCount == 0) { draw.CompleteDraw(); clickCount = -1; } }