예제 #1
0
        private static void RemoveEffect(IEffectsBean receiver, DefaultEditParams editParams)
        {
            RelationEditParameters rep = editParams as RelationEditParameters;

            if (rep == null)
            {
                return;
            }
            receiver.RemoveEffect((Effect)rep.Related);
        }
예제 #2
0
 public Effect(IEffectsBean effectBean)
 {
     if (effectBean == null)
     {
         return;
     }
     effectBean.AddEffect(this);
     if (effectBean is TestCasesStructure)
     {
         position = (effectBean as TestCasesStructure).GetNewEffectPosition();
     }
 }
예제 #3
0
 public IUndoableEdit CreateRemoveEffectEdit(IEffectsBean owner, Effect effect)
 {
     return(new DefaultEdit <IEffectsBean>(owner, RemoveEffect, AddEffect, effect));
 }