示例#1
0
        private void Load()
        {
            lock (_objSync)
            {
                if (_loaded)
                {
                    return;
                }

                DbTraceViewerLoader.Load();

                _loaded = true;
            }
        }
示例#2
0
        private void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
                GC.SuppressFinalize(this);
            }

            if (AllowTrace && _loaded)
            {
                DbTraceViewerLoader.Unload();

                _loaded    = false;
                AllowTrace = false;
            }

            _disposed = true;
        }