Update SmartFlip/MainWindow.xaml.cs