Exemplo n.º 1
0
        internal void MakeComposite(params int[] indices)
        {
            IFigure[] arr = new IFigure[indices.Length];
            for (int i = 0; i < indices.Length; i++)
            {
                arr[i] = figures.Get(indices[i]);
            }

            ACommand command = new MakeCompositeCommand(figures, arr);

            command.Execute();

            HandleAddCommand(command);
        }
Exemplo n.º 2
0
        internal void MakeComposite(params int[] indices)
        {
            IFigure[] arr = new IFigure[indices.Length];
            for (int i=0; i<indices.Length; i++)
                arr[i] = figures.Get(indices[i]);

            ACommand command = new MakeCompositeCommand(figures, arr);
            command.Execute();

            HandleAddCommand(command);
        }