コード例 #1
0
ファイル: User.cs プロジェクト: SokolovMS/DesignPatterns
        internal void DecorateWithBorder(int ind)
        {
            IFigure f = figures.Get(ind);

            ACommand command = new BorderDecoratorCommand(figures, f);
            command.Execute();

            HandleAddCommand(command);
        }
コード例 #2
0
        internal void DecorateWithBorder(int ind)
        {
            IFigure f = figures.Get(ind);

            ACommand command = new BorderDecoratorCommand(figures, f);

            command.Execute();

            HandleAddCommand(command);
        }