Simple GUI code using WPF