public void SaveWindowStyle() { try { _winStyle = new uWindowStyle() { SkinName = defaultLookAndFeel.LookAndFeel.SkinName, PaintStyleName = DevExpress.XtraNavBar.NavBarViewKind.NavigationPane, BarMenuDock = barTop.DockStyle, IsTabbedMdi = true, MdiLayout = MdiLayout }; string path = Path.Combine(GetAssemblyPath(), styleFileName); SaveAsXmlFormat(_winStyle, path); } catch (Exception ex) { MessageBox.Show("" + ex); } }
public void LoadWindowStyle() { try { string path = Path.Combine(GetAssemblyPath(), styleFileName); if (File.Exists(path)) { _winStyle = (uWindowStyle)LoadXmlFormat(path, typeof(uWindowStyle)); } if (_winStyle != null) { defaultLookAndFeel.LookAndFeel.SkinName = _winStyle.SkinName; barTop.DockStyle = _winStyle.BarMenuDock; xtraTabbedMdiMgr.MdiParent = this; MdiLayout = _winStyle.MdiLayout; } } catch (Exception ex) { MessageBox.Show("" + ex); } }