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); }
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); }