Ejemplo n.º 1
0
 public static void IsolinesOn()
 {
     ContextMenuIsoline.Attach();
     if (_overruleIsolineDraw == null)
     {
         _overruleIsolineDraw = new IsolineDrawableOverrule();
         Overrule.AddOverrule(RXObject.GetClass(typeof(Curve)), _overruleIsolineDraw, false);
     }
     if (_overruleIsolineTrans == null)
     {
         _overruleIsolineTrans = new IsolineTransformOverrule();
         Overrule.AddOverrule(RXObject.GetClass(typeof(Curve)), _overruleIsolineTrans, false);
     }
 }
Ejemplo n.º 2
0
 public static void IsolinesOff()
 {
     ContextMenuIsoline.Detach();
     if (_overruleIsolineDraw != null)
     {
         Overrule.RemoveOverrule(RXObject.GetClass(typeof(Curve)), _overruleIsolineDraw);
         _overruleIsolineDraw = null;
     }
     if (_overruleIsolineTrans != null)
     {
         Overrule.RemoveOverrule(RXObject.GetClass(typeof(Curve)), _overruleIsolineTrans);
         _overruleIsolineTrans = null;
     }
 }