private void prestamosToolStripMenuItem_Click(object sender, EventArgs e) { frmBiblioteca_Prestamos frmBiblioteca_Prestamos = frmBiblioteca_Prestamos.GetInstancia(); frmBiblioteca_Prestamos.MdiParent = this; frmBiblioteca_Prestamos.Show(); }
public static frmBiblioteca_Prestamos GetInstancia() { if (_Instancia == null) { _Instancia = new frmBiblioteca_Prestamos(); } return(_Instancia); }
private void DGResultados_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { try { frmBiblioteca_Prestamos form = frmBiblioteca_Prestamos.GetInstancia(); string par1, par2, par3, par4; par1 = Convert.ToString(this.DGResultados.CurrentRow.Cells["idalumno"].Value); par2 = Convert.ToString(this.DGResultados.CurrentRow.Cells["Alumno"].Value); par3 = Convert.ToString(this.DGResultados.CurrentRow.Cells["Documento"].Value); par4 = Convert.ToString(this.DGResultados.CurrentRow.Cells["Identificacion"].Value); form.setSolicitante(par1, par2, par3, par4); this.Hide(); } catch (Exception ex) { MessageBox.Show(ex.Message + ex.StackTrace); } }
private void frmBiblioteca_Prestamos_FormClosing(object sender, FormClosingEventArgs e) { _Instancia = null; }