private void asientosToolStripMenuItem_Click(object sender, EventArgs e) { frmVoucher _frmVoucher = new frmVoucher(cDatos.EstablecimientoID, cDatos.Establecimiento, cDatos.HotelID, cDatos.Hotel, cDatos.Periodo); _frmVoucher.MdiParent = this; _frmVoucher.Show(); }
private void btnAsientos_Click(object sender, EventArgs e) { frmVoucher _frmVoucher = new frmVoucher(cDatos.EstablecimientoID, cDatos.Establecimiento, cDatos.HotelID, cDatos.Hotel, cDatos.Periodo); _frmVoucher.MdiParent = this.MdiParent; _frmVoucher.Show(); }
private void btnVoucher1_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(txtPeriodo.Text) && cbxEmpresa.SelectedValue != null && cbxSucursal.SelectedValue != null) { Int32 empresaId = Convert.ToInt32(cbxEmpresa.SelectedValue); String empresa = cbxEmpresa.Text; Int32 sucursalId = Convert.ToInt32(cbxSucursal.SelectedValue); String sucursal = cbxSucursal.Text; Int32 periodoId = Convert.ToInt32(txtPeriodo.Text); frmVoucher _frmVoucher = new frmVoucher(empresaId, empresa, sucursalId, sucursal, periodoId); _frmVoucher.MdiParent = this.MdiParent; _frmVoucher.Height = this.Height; _frmVoucher.Width = (Int32)(this.Width * 0.90); _frmVoucher.ShowDialog(); } }