Resharped MainWindow.cs