public override bool Equals(object obj) { if (obj == null) { return(false); } ShadowDecorator f = obj as ShadowDecorator; if (f == null) { return(false); } return(decoratedFigure.Equals(f.decoratedFigure)); }
public override void Execute() { IFigure tmp = new ShadowDecorator(f); cf.Replace(f, tmp); }