Update MainWindow.xaml.cs