Ejemplo n.º 1
0
        private void button3_Click(object sender, EventArgs e)
        {
            if (FiltrarPor.Text == "Rango de Fechas")
            {
                fecha.Show();
                fecha1.Show();
                textBox1.Show();
                textBox2.Show();
                label5.Hide();
                textBox4.Hide();
                label4.Hide();
                textBox3.Hide();
                label3.Hide();
                EstadoT.Hide();
                label8.Hide();
                textBox7.Hide();
                label7.Hide();
                textBox6.Hide();
            }

            if (FiltrarPor.Text == "Estado")
            {
                label3.Show();
                EstadoT.Show();
                fecha.Hide();
                fecha1.Hide();
                textBox1.Hide();
                textBox2.Hide();
                label4.Hide();
                textBox3.Hide();
                label5.Hide();
                textBox4.Hide();
            }
            if (FiltrarPor.Text == "Especialidad")
            {
                label4.Show();
                textBox3.Show();
                label3.Hide();
                EstadoT.Hide();
                fecha.Hide();
                fecha1.Hide();
                textBox1.Hide();
                textBox2.Hide();
                label5.Hide();
                textBox4.Hide();
            }
            if (FiltrarPor.Text == "Nombre de paciente")
            {
                label5.Show();
                textBox4.Show();
                label4.Hide();
                textBox3.Hide();
                label3.Hide();
                EstadoT.Hide();
                fecha.Hide();
                fecha1.Hide();
                textBox1.Hide();
                textBox2.Hide();
            }
        }
Ejemplo n.º 2
0
 private void Aceptar_Click(object sender, EventArgs e)
 {
     if (OpcionesReporte.Text == "Citas Registradas en el Sistema")
     {
         label2.Show();
         FiltrarPor.Show();
         button3.Show();
         comboBox1.Hide();
         button4.Hide();
         label6.Hide();
         textBox5.Hide();
         button4.Hide();
         label6.Hide();
         textBox5.Hide();
     }
     if (OpcionesReporte.Text == "Diagnósticos asociados a un paciente")
     {
         label2.Show();
         comboBox1.Show();
         FiltrarPor.Hide();
         button4.Show();
         button3.Hide();
         label6.Show();
         textBox5.Show();
         label5.Hide();
         textBox4.Hide();
         label4.Hide();
         textBox3.Hide();
         label3.Hide();
         EstadoT.Hide();
         fecha.Hide();
         fecha1.Hide();
         textBox1.Hide();
         textBox2.Hide();
         fecha.Hide();
         fecha1.Hide();
         textBox1.Hide();
         textBox2.Hide();
         label8.Hide();
         textBox7.Hide();
         label7.Hide();
         textBox6.Hide();
     }
     if (OpcionesReporte.Text == "Tratamiento asociado a un paciente")
     {
     }
     if (OpcionesReporte.Text == "Cantidad de citas registradas en el sistema")
     {
         label2.Show();
         FiltrarPor.Show();
         button3.Show();
         comboBox1.Hide();
         button4.Hide();
         label6.Hide();
         textBox5.Hide();
         label5.Hide();
         textBox4.Hide();
         label4.Hide();
         textBox3.Hide();
         label3.Hide();
         EstadoT.Hide();
         fecha.Hide();
         fecha1.Hide();
         textBox1.Hide();
         textBox2.Hide();
     }
     if (OpcionesReporte.Text == "Cantidad de diagnósticos")
     {
     }
     if (OpcionesReporte.Text == "Cantidad de tratamientos")
     {
     }
 }