public MpeContainer() : base() { MpeLog.Debug("MpeContainer()"); backImage = new MpeImage(); backImage.Embedded = true; backImage.AutoSize = false; backImage.Id = 1; layoutStyle = MpeLayoutStyle.Grid; gridSize = new Size(8, 8); showGrid = true; showBorder = true; snapToGrid = true; spacing = 0; spring = false; }
public MpeContainer(MpeContainer container) : base(container) { MpeLog.Debug("MpeContainer(container)"); backImage = new MpeImage(container.backImage); layoutStyle = container.layoutStyle; gridSize = container.gridSize; showGrid = container.showGrid; showBorder = container.showBorder; snapToGrid = container.snapToGrid; spring = container.spring; spacing = container.spacing; for (int i = 0; i < container.Controls.Count; i++) { if (container.Controls[i] is MpeControl) { MpeControl c = (MpeControl) container.Controls[i]; if (c.Embedded == false) { Controls.Add(c.Copy()); } } } }
public MpeContainer(MpeContainer container) : base(container) { MpeLog.Debug("MpeContainer(container)"); backImage = new MpeImage(container.backImage); layoutStyle = container.layoutStyle; gridSize = container.gridSize; showGrid = container.showGrid; showBorder = container.showBorder; snapToGrid = container.snapToGrid; spring = container.spring; spacing = container.spacing; for (int i = 0; i < container.Controls.Count; i++) { if (container.Controls[i] is MpeControl) { MpeControl c = (MpeControl)container.Controls[i]; if (c.Embedded == false) { Controls.Add(c.Copy()); } } } }
public MpeLayoutStyle GetLayout(XPathNodeIterator iterator, string tagName, MpeLayoutStyle defaultValue) { string s = GetString(iterator, "mpe/layout", ""); if (s.Equals(MpeLayoutStyle.VerticalFlow.ToString())) { return MpeLayoutStyle.VerticalFlow; } else if (s.Equals(MpeLayoutStyle.HorizontalFlow.ToString())) { return MpeLayoutStyle.HorizontalFlow; } else if (s.Equals(MpeLayoutStyle.Grid.ToString())) { return MpeLayoutStyle.Grid; } else { return defaultValue; } }