Update MainWindow.cs

Probably useless code removed