예제 #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);
        }
예제 #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);
        }