private void button1_Click(object sender, EventArgs e) { frmManAgenda formulario = new frmManAgenda(); formulario.StartPosition = FormStartPosition.CenterScreen; formulario.recogerDatos(0, this.calendarioAnual.SelectionStart); formulario.ShowDialog(); cargaServicios(fechaDesde.Value, fechaHasta.Value); }
private void grdAgenda_DoubleClick(object sender, EventArgs e) { frmManAgenda formulario = new frmManAgenda(); formulario.recogerDatos(Convert.ToInt32(this.grdAgenda.CurrentRow.Cells[0].Value), this.calendarioAnual.SelectionStart); formulario.StartPosition = FormStartPosition.CenterScreen; formulario.ShowDialog(); cargaServicios(this.calendarioAnual.SelectionStart, this.calendarioAnual.SelectionStart); }