void WindowContent(int windowID)
        {
            GUILayout.BeginVertical();
            GUILayout.BeginHorizontal();
            if (GUILayout.Button("Permanent Prune"))
            {
                winState = winContent.permaprune;
                //                        pruner();
                // CloseWindow();
            }
            GUILayout.EndHorizontal();
            GUILayout.BeginHorizontal();
            if (GUILayout.Button("Undo Permanent Prune"))
            {
                winState = winContent.undo;
                //unpruner();
                //CloseWindow();
            }
            GUILayout.EndHorizontal();
            GUILayout.BeginHorizontal();
            if (GUILayout.Button("Cancel"))
            {
                CloseWindow();
            }

            GUILayout.EndHorizontal();
            GUILayout.EndVertical();
            GUI.DragWindow();
        }
        void OnGUI()
        {
            if (isEnabled())
            {
                switch (winState)
                {
                case winContent.menu:
                    if (windowContentID == 0)
                    {
                        windowContentID = JanitorsCloset.getNextID();
                    }
                    _windowTitle = string.Format("PermaPrune");
                    var tstyle = new GUIStyle(GUI.skin.window);

                    _windowRect.yMax = _windowRect.yMin;
                    _windowRect      = ClickThruBlocker.GUILayoutWindow(windowContentID, _windowRect, WindowContent, _windowTitle, tstyle);
                    break;

                case winContent.permaprune:
                    dialog = new MultiOptionDialog("janitorsToolbar3",
                                                   "This will permanently rename files to prevent them from being loaded", "Permanent Prune", HighLogic.UISkin, new DialogGUIBase[] {
                        new DialogGUIButton("OK", () => {
                            winState = winContent.close;
                            startPruner();
                            // pruner();
                        }),
                        new DialogGUIButton("Cancel", () => {
                            winState = winContent.close;
                        })
                    });
                    PopupDialog.SpawnPopupDialog(new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), dialog, false, HighLogic.UISkin, true);
                    winState = winContent.dialog;
                    break;

                case winContent.undo:
                    dialog = new MultiOptionDialog("janitorsToolbar4",
                                                   "This will permanently rename pruned files to allow them to be loaded", "Unprune (restore)", HighLogic.UISkin, new DialogGUIBase[] {
                        new DialogGUIButton("OK", () => {
                            unpruner();
                            winState = winContent.close;
                        }),
                        new DialogGUIButton("Cancel", () => {
                            winState = winContent.close;
                        })
                    });
                    PopupDialog.SpawnPopupDialog(new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), dialog, false, HighLogic.UISkin, true);
                    winState = winContent.dialog;
                    break;

                case winContent.close:
                    CloseWindow();
                    break;
                }
            }
        }