Updated MainWindow.xaml.cs with Andres' updates.

Signed-off-by: Andalon <dg4christ08@gmail.com>