Exemple #1
0
        void OnLayoutManagerAfterLoad(object sender, EventArgs e)
        {
            var layoutData = WpfLayoutData.GetLayoutData();

            SaveAllLayouts                = layoutData.SaveAllLayouts;
            SaveDetailViewLayouts         = layoutData.SaveDetailViewLayouts;
            SaveGridControlsLayouts       = layoutData.SaveGridControlsLayouts;
            SaveDockLayoutManagersLayouts = layoutData.SaveDockLayoutManagersLayouts;
            SaveLayoutControlsLayouts     = layoutData.SaveLayoutControlsLayouts;
        }
Exemple #2
0
        void OnLayoutManagerBeforeSave(object sender, EventArgs e)
        {
            var layoutData = WpfLayoutData.GetLayoutData();

            layoutData.SaveAllLayouts                = SaveAllLayouts;
            layoutData.SaveDetailViewLayouts         = SaveDetailViewLayouts;
            layoutData.SaveGridControlsLayouts       = SaveGridControlsLayouts;
            layoutData.SaveDockLayoutManagersLayouts = SaveDockLayoutManagersLayouts;
            layoutData.SaveLayoutControlsLayouts     = SaveLayoutControlsLayouts;
        }
Exemple #3
0
        public static WpfLayoutData GetLayoutData()
        {
            var layoutDataCollection = LayoutManager.Current.GetLayoutData <WpfLayoutData>();

            if (layoutDataCollection.Count != 0)
            {
                return(layoutDataCollection[0]);
            }
            var layoutData = new WpfLayoutData(VideoRentCurrentUser.GetCurrentUser(LayoutManager.Current.Session));

            LayoutManager.Current.LayoutData.Add(layoutData);
            return(layoutData);
        }