private void method_0(bool bool_0) { IGraphicsContainer container = this.iactiveView_0 as IGraphicsContainer; this.ienumElement_0.Reset(); IElement data = this.ienumElement_0.Next(); IEnvelope envelope = null; while (data != null) { if (bool_0) { if (envelope == null) { envelope = data.Geometry.Envelope; } else { envelope.Union(data.Geometry.Envelope); } this.iactiveView_0.PartialRefresh(esriViewDrawPhase.esriViewGraphics, data, null); container.DeleteElement(data); } else { container.AddElement(data, -1); } ElementChangeEvent.DeleteElement(data); data = this.ienumElement_0.Next(); } this.iactiveView_0.PartialRefresh(esriViewDrawPhase.esriViewGraphics, null, null); }
private void method_0(bool bool_0) { double x; double y; this.ienumElement_0.Reset(); IElement data = this.ienumElement_0.Next(); if (bool_0) { x = this.ipoint_0.X; y = this.ipoint_0.Y; } else { x = -this.ipoint_0.X; y = -this.ipoint_0.Y; } while (data != null) { if (this.iactiveView_0 is IMap) { this.iactiveView_0.PartialRefresh(esriViewDrawPhase.esriViewGeography, null, data.Geometry.Envelope); } this.iactiveView_0.PartialRefresh(esriViewDrawPhase.esriViewGraphics, data, null); (data as ITransform2D).Move(x, y); this.iactiveView_0.GraphicsContainer.UpdateElement(data); this.iactiveView_0.PartialRefresh(esriViewDrawPhase.esriViewGraphics, data, null); if (this.iactiveView_0 is IMap) { this.iactiveView_0.PartialRefresh(esriViewDrawPhase.esriViewGeography, null, data.Geometry.Envelope); } ElementChangeEvent.ElementPositionChange(data); data = this.ienumElement_0.Next(); } }
public override void OnClick() { ElementChangeEvent.InsertElement(this.elementType_0); }