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); } }
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; } }