private void ConnectButton_Click(object sender, RoutedEventArgs e) { ConnectWindow window = new ConnectWindow(); window.ShowDialog(); }