private void Button_Click_1(object sender, RoutedEventArgs e) { btConectar.Content = "Desconectar"; sis.Conectar(cbPorts.Text); sis.iniciarSoftware(); MainWindow1.Close(); }
//end game button clicked button private void Button_Click(object sender, RoutedEventArgs e) { if (gameStarted == false) { Save(); MainWindow1.Close(); } }
private void Button_Click_1(object sender, RoutedEventArgs e) { if ((string)Connect_btn.Content == "Disconect") { try { cl.ClientDis(); } catch { } } MainWindow1.Close(); }
private void Exit_Click(object sender, RoutedEventArgs e) { MainWindow1.Close(); }