BF2Statistics.ProgressDialog.CleanUp C# (CSharp) Method

CleanUp() private method

Releases the RCW to the native IProgressDialog component.
private CleanUp ( ) : void
return void
        private void CleanUp()
        {
            if (_nativeProgressDialog != null)
            {
                if (_state != ProgressDialogState.Stopped)
                {
                    try {
                        _nativeProgressDialog.StopProgressDialog();
                    }
                    catch { }
                }

                Marshal.FinalReleaseComObject(_nativeProgressDialog);
                _nativeProgressDialog = null;
            }

            _state = ProgressDialogState.Stopped;
        }