private void Button_Click_4(object sender, RoutedEventArgs e) { AddOpreracionesTi mostrar = new AddOpreracionesTi(1); mostrar.ShowDialog(); mostrar.Close(); Conexiones(); }
private void Button_Click(object sender, RoutedEventArgs e) { if (mostrarDatos.SelectedCells.Count > 0) { DataRowView vista = (DataRowView)mostrarDatos.SelectedItem; int id_tipo = (int)(vista["Id"]); String Descripcion = (vista["Descripcion"]).ToString(); AddOpreracionesTi abrir = new AddOpreracionesTi(2, id_tipo, Descripcion); abrir.ShowDialog(); abrir.Close(); Conexiones(); } else { System.Windows.MessageBox.Show("Seleccione algun dato de la tabla."); } }