public MainWindow() { InitializeComponent(); DataContext = this; MyLongRunningCommand = new MyLongRunningCommand(progressDialog); }