How to call method of the main WPF window from the modal window?

(In fact I want to start some timer of the MainWindow.xaml.cs when I close some model window.)

Thank you!

Edit
Report