Beispiel #1
0
        private PlacementOperation(DesignItem[] items, PlacementType type)
        {
            PlacementInformation[] information = new PlacementInformation[items.Length];
            for (int i = 0; i < information.Length; i++)
            {
                information[i] = new PlacementInformation(items[i], this);
            }
            this.placedItems = new ReadOnlyCollection <PlacementInformation>(information);
            this.type        = type;

            this.currentContainer         = items[0].Parent;
            this.currentContainerBehavior = GetPlacementBehavior(items);

            this.changeGroup = items[0].Context.OpenGroup(type.ToString(), items);
        }
		private PlacementOperation(DesignItem[] items, PlacementType type)
		{
			PlacementInformation[] information = new PlacementInformation[items.Length];
			for (int i = 0; i < information.Length; i++) {
				information[i] = new PlacementInformation(items[i], this);
			}
			this.placedItems = new ReadOnlyCollection<PlacementInformation>(information);
			this.type = type;
			
			this.currentContainer = items[0].Parent;
			this.currentContainerBehavior = GetPlacementBehavior(items);
			
			this.changeGroup = items[0].Context.OpenGroup(type.ToString(), items);
		}