private void pridejSpojeni(object sender, RoutedEventArgs e) { // dialog pro nove spojeni ConnectionDialog dialog = new ConnectionDialog(connectionMgr.NewConnection(), true); dialog.Owner = this; dialog.ShowDialog(); }