Kill thread when close wpf window

Job ID: 36550203

Budget: $10 – $30 CAD

Hi
I have a wpf application. When user click on a report button, I will open a dialog. User will fill info and click generate report. Some report runs too long and user click close the dialog. the dialog is closed but the process is still there and its slow down the system. I m looking for some one who can kill the process when user close the dialog?
Related categories: .NET C# Programming WPF ASP.NET Microsoft SQL Server