private static void RemoveEffect(IEffectsBean receiver, DefaultEditParams editParams) { RelationEditParameters rep = editParams as RelationEditParameters; if (rep == null) { return; } receiver.RemoveEffect((Effect)rep.Related); }
public Effect(IEffectsBean effectBean) { if (effectBean == null) { return; } effectBean.AddEffect(this); if (effectBean is TestCasesStructure) { position = (effectBean as TestCasesStructure).GetNewEffectPosition(); } }
public IUndoableEdit CreateRemoveEffectEdit(IEffectsBean owner, Effect effect) { return(new DefaultEdit <IEffectsBean>(owner, RemoveEffect, AddEffect, effect)); }