private void btnCuentas_Click(object sender, EventArgs e) { frmAsientosList _frmAsientosList = new frmAsientosList(cDatos.EstablecimientoID, cDatos.Establecimiento, cDatos.HotelID, cDatos.Hotel, cDatos.Periodo); _frmAsientosList.MdiParent = this.MdiParent; //_frmAsientosList.Height = this.Height; //_frmAsientosList.Width = (Int32)(this.Width * 0.90); _frmAsientosList.ShowDialog(this); }
private void btnEstadosCuenta1_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); frmAsientosList _frmAsientosList = new frmAsientosList(empresaId, empresa, sucursalId, sucursal, periodoId); _frmAsientosList.MdiParent = this.MdiParent; _frmAsientosList.Height = this.Height; _frmAsientosList.Width = (Int32)(this.Width * 0.90); _frmAsientosList.ShowDialog(); } }