public static FrmReservas GetInstancia() { if (_instancia == null) { _instancia = new FrmReservas(); } return(_instancia); }
private void DgvRegistros_DoubleClick(object sender, EventArgs e) { FrmReservas form = FrmReservas.GetInstancia(); string par1; string par2; par1 = Convert.ToString(this.dgvRegistros.CurrentRow.Cells["CodigoCL"].Value); par2 = Convert.ToString(this.dgvRegistros.CurrentRow.Cells["Nombres"].Value); form.setCliente(par1, par2); this.Hide(); }
private void DgvRegistros_DoubleClick(object sender, EventArgs e) { FrmReservas form = FrmReservas.GetInstancia(); string par1; string par2; string par3; par1 = Convert.ToString(this.dgvRegistros.CurrentRow.Cells["CodigoL"].Value); par2 = Convert.ToString(this.dgvRegistros.CurrentRow.Cells["Nro_Lote"].Value); par3 = Convert.ToString(this.dgvRegistros.CurrentRow.Cells["Precio"].Value); form.setLotes(par1, par2, par3); this.Hide(); }
private void NuevaReservaToolStripMenuItem_Click(object sender, EventArgs e) { FrmReservas frm = FrmReservas.GetInstancia(); frm.ShowDialog(); }