public void Restore(IWorkspace workspace) { String configFile = Path.Combine( Path.GetDirectoryName(Application.ExecutablePath), "Layout.config"); if (File.Exists(configFile)) { workspace.MainDockManager.LoadFromXml(configFile, new DeserializeDockContent(GetContentFromPersistString)); } else { arGraph.Show(workspace.MainDockManager, DockState.Document); outView.Show(workspace.MainDockManager, DockState.DockBottomAutoHide); projExplorer.Show(workspace.MainDockManager, DockState.DockRight); avaShapes.Show(workspace.MainDockManager, DockState.DockRight); } }
private void DoAction() { _availableShapes.Show(Workspace.MainDockManager); }