Exemplo n.º 1
0
        private void cmsPicBoxCropSelectedPath_Click(object sender, EventArgs e)
        {
            if (manualEdit)
            {
                return;
            }
            transformStart(cmsPicBoxCropSelectedPath.Text, false);

            if ((xmlMarker.GetGroupCount() > 0) && (markedBlockType == xmlMarkerType.Group))
            {
                if (xmlMarker.GetGroup(fCTBCodeClickedLineNow, 10))    // get range group+1-start to group+n-end
                {
                    setTextSelection(xmlMarker.lastGroup.lineStart, xmlMarker.lastGroup.lineEnd);
                    fCTBCode.SelectedText = "";
                }
                if (xmlMarker.GetGroup(fCTBCodeClickedLineNow, -10))    // get range group0-start to group-1-end
                {
                    setTextSelection(xmlMarker.lastGroup.lineStart, xmlMarker.lastGroup.lineEnd);
                    fCTBCode.SelectedText = "";
                }
            }
            else if ((xmlMarker.GetFigureCount() > 0) && (markedBlockType == xmlMarkerType.Figure))
            {
                if (xmlMarker.GetFigure(fCTBCodeClickedLineNow, 10))    // get range group+1-start to group+n-end
                {
                    setTextSelection(xmlMarker.lastGroup.lineStart, xmlMarker.lastGroup.lineEnd);
                    fCTBCode.SelectedText = "";
                }
                if (xmlMarker.GetFigure(fCTBCodeClickedLineNow, -10))    // get range group0-start to group-1-end
                {
                    setTextSelection(xmlMarker.lastGroup.lineStart, xmlMarker.lastGroup.lineEnd);
                    fCTBCode.SelectedText = "";
                }
            }
            else
            {
                fCTBCode.Text = VisuGCode.cutOutFigure();
            }
            transformEnd();
        }
Exemplo n.º 2
0
 private void cutOutSelectedPathToolStripMenuItem_Click(object sender, EventArgs e)
 {
     transformStart("Crop selection (Cut out)", false);
     fCTBCode.Text = VisuGCode.cutOutFigure();
     transformEnd();
 }