コード例 #1
0
        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));
        }
コード例 #2
0
        public override void Execute()
        {
            IFigure tmp = new ShadowDecorator(f);

            cf.Replace(f, tmp);
        }
コード例 #3
0
 public override void Execute()
 {
     IFigure tmp = new ShadowDecorator(f);
     cf.Replace(f, tmp);
 }