static public void InitProjectPanel() { if (ProjectPanel == null) { ProjectPanel = ShowDockablePanel <ProjectPanel>("CS-Script", projectPanelId, NppTbMsg.DWS_DF_CONT_LEFT | NppTbMsg.DWS_ICONTAB | NppTbMsg.DWS_ICONBAR); } else { SetDockedPanelVisible(dockedManagedPanels[projectPanelId], projectPanelId, true); } ProjectPanel.Focus(); Application.DoEvents(); }
static public void InitProjectPanel() { if (ProjectPanel == null) { ProjectPanel = ShowDockablePanel <ProjectPanel>("CS-Script", projectPanelId, NppTbMsg.DWS_DF_CONT_LEFT | NppTbMsg.DWS_ICONTAB | NppTbMsg.DWS_ICONBAR); } else { bool requeredIsVisibleState = true; if (Config.Instance.UseTogglingPanelVisibility) { requeredIsVisibleState = !ProjectPanel.Visible; } SetDockedPanelVisible(dockedManagedPanels[projectPanelId], projectPanelId, requeredIsVisibleState); } ProjectPanel.Focus(); Application.DoEvents(); }