Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
 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);
     }
 }