private void VisualizarUEN() { UEN uen = new UEN(); int idUENSelecionada = 0; int linhaGrid = 0; if (gvUEN.RowCount == 0) { return; } linhaGrid = gvUEN.SelectedCells[0].RowIndex; idUENSelecionada = int.Parse(gvUEN[0, linhaGrid].Value.ToString()); uen = bizUEN.PesquisarUEN(new UEN() { idUEN = idUENSelecionada })[0]; UENManutencao form = new UENManutencao(uen); form.ShowDialog(); btPesquisar_Click(null, null); }
private void btNovo_Click(object sender, EventArgs e) { UENManutencao form = new UENManutencao(new UEN()); form.ShowDialog(); btPesquisar_Click(null, null); }