private void btnGuardar_Click(object sender, RoutedEventArgs e) { WinAddComunidad newComunidad = new WinAddComunidad(); System.Windows.Forms.Integration.ElementHost.EnableModelessKeyboardInterop(newComunidad); newComunidad.ShowDialog(); fillDataGrid(); }
private void dataGridComn_MouseDoubleClick(object sender, MouseButtonEventArgs e) { _Comunidad sele = dataGridComn.SelectedItem as _Comunidad; _ComunidadLN comunidad = new _ComunidadLN(); idComn = sele.idComunidad; WinAddComunidad nWinAddComunidad = new WinAddComunidad(); System.Windows.Forms.Integration.ElementHost.EnableModelessKeyboardInterop(nWinAddComunidad); nWinAddComunidad.txtNombre.Text = sele.Nombre; nWinAddComunidad.cmbDpto.Text = sele.DepartamentoNombre; nWinAddComunidad.cmbMun.Text = sele.MunicipioNombre; nWinAddComunidad.getId(idComn); nWinAddComunidad.ShowDialog(); fillDataGrid(); }