public void ShowPropertyBar(object sender, EventArgs e) { if (propertyBar.Visible) { propertyBarDocState = propertyBar.DockState; propertyBar.Hide(); } else { propertyBar.Show(dockPanel, propertyBarDocState); } }
public MainForm() { inst = this; InitializeComponent(); propertyBar = new PropertyBar(); propertyBar.Show(dockPanel, propertyBarDocState); propertyBar.DockHandler.DockAreas = DockAreas.DockBottom; propertyBar.DockHandler.AutoHideButtonVisible = false; propertyBar.DockHandler.HideOnClose = true; currentLibraryView = LibraryView.Instance; currentLibraryView.Show(dockPanel, libraryDocState); currentLibraryView.DockHandler.HideOnClose = true; dockPanel.UpdateDockWindowZOrder(DockStyle.Right, true); dockPanel.UpdateDockWindowZOrder(DockStyle.Bottom, false); this.DoubleBuffered = true; this.AddEvents(); #if DEBUG if (File.Exists(testFile)) { string fullPath = Path.GetFullPath(testFile); CreateNewStage(Path.GetFileNameWithoutExtension(fullPath)); currentStage.LoadUIL(fullPath); currentLibraryView.SelectFirstNode(); } else { NewDocument(this, EventArgs.Empty); } #else NewDocument(this, EventArgs.Empty); #endif }