Beispiel #1
0
        private void reverseButton_Click(object sender, System.EventArgs e)
        {
            if (EventsHandlingPaused)
            {
                return;
            }

            NShape shape = (view.Selection.AnchorNode as NShape);

            if (shape == null || shape.ShapeType != ShapeType.Shape1D)
            {
                return;
            }

            shape.Reverse();
            document.SmartRefreshAllViews();
        }