private void ConfigClick(object sender, RoutedEventArgs e) { var config = new ConfigWindow(); config.Owner = this; config.ShowDialog(); }