void OpenConsoleHandler(object sender, ExecutedRoutedEventArgs e) { var dialog = new ConsoleDialog(); dialog.Owner = m_mainWindow; dialog.Show(); }