private void Bcargar_Click(object sender, RoutedEventArgs e) { if (TBox.Visibility == Visibility.Hidden) { lable.Visibility = Visibility.Visible; TBox.Visibility = Visibility.Visible; } else { Partida p = new Partida(LoadGame(TBox.Text)); p.Show(); Close(); } }