Ejemplo n.º 1
0
        private void OnSnapChanged(object sender, SnapChangedEventArgs args)
        {
            if ((args.param & RadShapeEditorControl.SnapTypes.SnapToGrid) != 0)
            {
                if (checkBox_GridSnap.Checked != shapeEditorControl1.GridSnap)
                {
                    checkBox_GridSnap.Checked = shapeEditorControl1.GridSnap;
                }
            }

            if ((args.param & RadShapeEditorControl.SnapTypes.SnapToCtrl) != 0)
            {
                if (checkBox_CtrlSnap.Checked != shapeEditorControl1.CtrlPointsSnap)
                {
                    checkBox_CtrlSnap.Checked = shapeEditorControl1.CtrlPointsSnap;
                }
            }

            if ((args.param & RadShapeEditorControl.SnapTypes.SnapToCurves) != 0)
            {
                if (checkBox_CurveSnap.Checked != shapeEditorControl1.CurvesSnap)
                {
                    checkBox_CurveSnap.Checked = shapeEditorControl1.CurvesSnap;
                }
            }

            if ((args.param & RadShapeEditorControl.SnapTypes.SnapToExtensions) != 0)
            {
                if (checkBox_ExtSnap.Checked != shapeEditorControl1.ExtensionsSnap)
                {
                    checkBox_ExtSnap.Checked = shapeEditorControl1.ExtensionsSnap;
                }
            }
        }
Ejemplo n.º 2
0
 public virtual void OnSnapChanged(SnapChangedEventArgs e)
 {
     if (this.SnapChanged == null)
     {
         return;
     }
     this.SnapChanged((object)this, e);
 }
Ejemplo n.º 3
0
 private void OnSnapChanged(object sender, SnapChangedEventArgs args)
 {
     if ((args.param & RadShapeEditorControl.SnapTypes.SnapToGrid) != (RadShapeEditorControl.SnapTypes) 0 && this.checkBox_GridSnap.Checked != this.shapeEditorControl1.GridSnap)
     {
         this.checkBox_GridSnap.Checked = this.shapeEditorControl1.GridSnap;
     }
     if ((args.param & RadShapeEditorControl.SnapTypes.SnapToCtrl) != (RadShapeEditorControl.SnapTypes) 0 && this.checkBox_CtrlSnap.Checked != this.shapeEditorControl1.CtrlPointsSnap)
     {
         this.checkBox_CtrlSnap.Checked = this.shapeEditorControl1.CtrlPointsSnap;
     }
     if ((args.param & RadShapeEditorControl.SnapTypes.SnapToCurves) != (RadShapeEditorControl.SnapTypes) 0 && this.checkBox_CurveSnap.Checked != this.shapeEditorControl1.CurvesSnap)
     {
         this.checkBox_CurveSnap.Checked = this.shapeEditorControl1.CurvesSnap;
     }
     if ((args.param & RadShapeEditorControl.SnapTypes.SnapToExtensions) == (RadShapeEditorControl.SnapTypes) 0 || this.checkBox_ExtSnap.Checked == this.shapeEditorControl1.ExtensionsSnap)
     {
         return;
     }
     this.checkBox_ExtSnap.Checked = this.shapeEditorControl1.ExtensionsSnap;
 }