public override void ViewWillDisappear(bool animated)
        {
            base.ViewWillDisappear(animated);
            if (testFileStream != null)
            {
                testFileStream.Dispose();
            }

            if (dispatchSource != null)
            {
                dispatchSource.Cancel();
                dispatchSource.Dispose();
            }
        }