What is the most elegant way of adding a delegate to MainView.Window.Closing?
I keep getting the non-static - static, error message when compiling and I can for some odd reason not think of a solution.
So I would like something I can either call at launch like this:
MainView.Window.Closing += saveSettings(null, null);