public void LoadParts(XmlElement xml, bool select, bool conditions, bool dockpanel) { if (conditions) { Conditions = new TablePerspectiveConditions(); Conditions.LoadFromXml(xml.FindElement("Conditions")); } if (select) { Select = new DmlfSelect(); Select.LoadFromXml(xml.FindElement("Select")); } if (dockpanel && xml.FindElement("DockPanel") != null) { DockPanelDesign = new ReferencesDockPanelDesign(); DockPanelDesign.LoadFromXml(xml.FindElement("DockPanel")); } }
private ReferencesDockPanelDesign SaveDockPanel() { if (DataState.DockPanelFrame == null) { return(null); } var res = new ReferencesDockPanelDesign(); var wins = new List <ContentFrame>(); GetThisAndDetails(wins); wins.Remove(this); foreach (var win in wins) { var r = win as ReferencesTableDataFrame; if (r == null) { continue; } res._AddFrameDef(r); } res.LoadLayoutFromPanel(DataState.DockPanelFrame); return(res); }