private void mnuVisualizar_Click(object sender, EventArgs e) { Visor oVisor = new Visor(); oVisor.StartPosition = FormStartPosition.CenterParent; oVisor.ShowDialog(); oVisor.Dispose(); }
private void btnFacturar_Click(object sender, EventArgs e) { Visor oVisor = new Visor(); oVisor.EsRecibida = false; oVisor.dtDatos = oHelper.RecuperarMontoFacturar(dtpFechaInicial.Value.ToString("yyyyMMdd"), dtpFechaFinal.Value.ToString("yyyyMMdd"), true).Tables[0]; oVisor.ShowDialog(); this.Visible = false; this.Close(); this.Dispose(); }