public void Dispose()
        {
            switch (SLDWorksDisposeOption)
            {
            case SLDWorksDisposeOption.CloseAllDocument:
                SwApp?.CloseAllDocuments(true);
                break;

            case SLDWorksDisposeOption.CloseAllDocumentAndExit:
                SwApp?.CloseAllDocuments(true);
                SwApp?.ExitApp();
                break;

            case SLDWorksDisposeOption.NoAction:
                break;

            case SLDWorksDisposeOption.WithActionClose:
                CloseAction?.Invoke(SwApp);
                break;

            default:
                break;
            }
        }