private void btnBeca_Click_1(object sender, EventArgs e) { BuscarBeca buscarBeca = new BuscarBeca(); buscarBeca.Owner = this; if (buscarBeca.ShowDialog() == DialogResult.OK) { txtBecaAsociada.Text = buscarBeca.BecaSeleccionada.Nombre_beca; beca = buscarBeca.BecaSeleccionada; } }
private void btnBuscarBecaCBT_Click(object sender, EventArgs e) { if (txtCodBecCBT.Text != "") { DGVConsBecaT.DataSource = becaBL.listarBecaSolicitada(txtCodBecCBT.Text); DGVConsBecaT.Refresh(); } else { BuscarBeca frmBuscarBecaT = new BuscarBeca(); // frmBuscarBecaT.Show(); if (frmBuscarBecaT.ShowDialog() == DialogResult.OK) { //MessageBox.Show(frmBuscarBecaT.BecaSeleccionada.Nombre_beca); //MessageBox.Show(frmBuscarBecaT.BecaSeleccionada.Descripcion); lstBecasSeleccionadas.Add(frmBuscarBecaT.BecaSeleccionada); //DGVConsBecaT.DataSource = lstBecasSeleccionadas; //DGVConsBecaT.Refresh(); } } }
private void btnBeca_Click(object sender, EventArgs e) { BuscarBeca beca = new BuscarBeca(); beca.Visible = true; }