Ejemplo n.º 1
0
 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;
    }
 }
Ejemplo n.º 2
0
 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);
    }
 }