private void MainButton_Click(object sender, RoutedEventArgs e) { View.ConnectWindow win = new View.ConnectWindow(); win.Show(); win.SetWin(this); }