Beispiel #1
0
        private bool SetupSavedDocking()
        {
            try
            {
                if (File.Exists(Paths.DockingPath))
                {
                    FormProject  formProject  = new FormProject();
                    FormOpenDocs formOpenDOcs = new FormOpenDocs();
                    FormOutline  formOutline  = new FormOutline();

                    FormFindInFiles formFindInFiles = new FormFindInFiles();
                    _DeserializeDockContent = new DeserializeDockContent(DockingManager.GetContentFromPersistString);

                    DockingPanel.LoadFromXml(Paths.DockingPath, _DeserializeDockContent);
                    return(true);
                }
            }
            catch (Exception ex)
            {
                Log.Write(ex);
            }
            return(false);
        }
Beispiel #2
0
        private void SetupDefaultDocking()
        {
            try
            {
                FormProject formProject = new FormProject();
                formProject.Show(DockingPanel, DockState.DockRight);

                // Create the open files form.
                FormOpenDocs formOpenDocs = new FormOpenDocs();
                formOpenDocs.Show(DockingPanel, DockState.DockRight);

                // Create the database form.
                FormOutline formOutline = new FormOutline();
                formOutline.Show(formProject.Pane, DockAlignment.Bottom, .5);


                FormFindInFiles formFindInFiles = new FormFindInFiles();
                formFindInFiles.Show(DockingPanel, DockState.DockBottom);
            }
            catch (Exception ex)
            {
                Log.Write(ex);
            }
        }