Exemplo n.º 1
0
        private void ExitMenuItemClicked(object sender, RoutedEventArgs e)
        {
            _SaveFileHelper.Autosave();
            SaveLayoutHelper.SaveLayout(dockingManager);

            Application.Current.Shutdown();
        }
Exemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();
            //DockHelper.RootAnchorablePane = AnchorablePane;
            AnchorablePane.DockMinHeight = 15;
            WindowStartupLocation        = WindowStartupLocation.CenterScreen;

            if (SaveLayoutHelper.LayoutSaveExists())
            {
                SaveLayoutHelper.LoadLayout(dockingManager);
            }

            var temp = dockingManager.Layout.RootPanel.Children.First();
            var cast = temp.Descendents().First(x => x is LayoutAnchorablePane) as LayoutAnchorablePane;

            DockHelper.RootAnchorablePane = cast;

            _SaveFileHelper = new SaveFileHelper();
            if (File.Exists("Autosave.json"))
            {
                _SaveFileHelper.LoadSavedModulesFromFile("Autosave.json");
            }
        }
Exemplo n.º 3
0
 private void SaveMenuItemClicked(object sender, RoutedEventArgs e)
 {
     _SaveFileHelper.Autosave();
     SaveLayoutHelper.SaveLayout(dockingManager);
 }