private static void IsolinesOn() { ContextMenuIsoline.Attach(); if (_overruleIsolineDraw == null) { _overruleIsolineDraw = new IsolineDrawableOverrule(); Overrule.AddOverrule(RXClass.GetClass(typeof(Curve)), _overruleIsolineDraw, false); } if (_overruleIsolineTrans == null) { _overruleIsolineTrans = new IsolineTransformOverrule(); Overrule.AddOverrule(RXClass.GetClass(typeof(Curve)), _overruleIsolineTrans, false); } }
private static void IsolinesOff() { ContextMenuIsoline.Detach(); if (_overruleIsolineDraw != null) { Overrule.RemoveOverrule(RXClass.GetClass(typeof(Curve)), _overruleIsolineDraw); _overruleIsolineDraw = null; } if (_overruleIsolineTrans != null) { Overrule.RemoveOverrule(RXClass.GetClass(typeof(Curve)), _overruleIsolineTrans); _overruleIsolineTrans = null; } }