public void ClearUndo()
        {
            switch (_CurrentTab)
            {
            case "design":
                dcDesign.ClearUndo();
                break;

            case "edit":
                tbEditor.ClearUndo();
                break;

            default:
                break;
            }
        }
        public void ClearUndo()
        {
            switch (_CurrentTab)
            {
            case DesignTabs.Design:
                dcDesign.ClearUndo();
                break;

            case DesignTabs.Edit:
                scintilla1.EmptyUndoBuffer();
                break;

            default:
                break;
            }
        }