예제 #1
0
 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();
 }
예제 #2
0
        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();
        }