public frmAltaHistoriaClinica(frmTurnos srmturnos, Medico medico, string dni, DateTime D) { InitializeComponent(); this.srmturnos = srmturnos; this.medico = medico; this.dni = dni; TurnosNegocio TN = new TurnosNegocio(); this.paciente = new Paciente(); TN.LeerPaciente(this.dni, ref this.paciente); HCNegocio = new HistoriaClinicaNegocio(); if (D.Date == DateTime.Now.Date && id == 2) { this.groupBox2.Enabled = true; } else { this.groupBox2.Enabled = false; } }
private void consultaToolStripMenuItem_Click(object sender, EventArgs e) { this.turnos = new frmTurnos(this); this.Enabled = false; this.turnos.Show(); }