internal void IncreaseWidth() { if (this.SelectedItem != null) { var viz = new PKSizeModifyVisitor(((this.SelectedItem.Width / 5) + 1) * 5, -1, 0); this.selectedItems.ForEach(x => { x.Accept(viz); }); BoxChanged(true); } }
internal void DecreaseHeight() { if (this.SelectedItem != null) { var viz = new PKSizeModifyVisitor(-1, ((this.SelectedItem.Height / 5) - 1) * 5, 0); this.selectedItems.ForEach(x => { x.Accept(viz); }); BoxChanged(true); } }
internal void MakeSameSizeFields() { var fs = this.selectedItems.FirstOrDefault(); if (fs != null) { var viz = new PKSizeModifyVisitor(fs.Width, fs.Height, fs.Flex); this.selectedItems.ForEach(x => { x.Accept(viz); }); BoxChanged(true); } }