private void bSyncKey_Click(object sender, RoutedEventArgs e) { EditSyncKey dlgESK = new EditSyncKey(); dlgESK.Owner = this; dlgESK.ShowDialog(); }