Exemplo n.º 1
0
        private void loadBtn_Click(object sender, EventArgs e)
        {
            //List<Patient> patients = new List<Patient>();
            PatientServices patientServices = new PatientServices();

            dataGridView1.DataSource = patientServices.GetAllCurrent();
        }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            dataGridView1.Dock    = DockStyle.Fill;
            dataGridView1.Visible = true;
            //extraServicesControl1.Visible = false;
            comboBox3.Hide();
            label15.Hide();
            checkedListBox1.Hide();
            label14.Hide();
            button3.Hide();
            button4.Hide();

            List <Patient>  patients        = new List <Patient>();
            PatientServices patientServices = new PatientServices();

            patients = patientServices.GetAllCurrent();

            foreach (Patient item in patients.ToList())
            {
                // MessageBox.Show(doctor.Name + ":" + doctor.Phone);
                if (item.Consultant.Equals(doctor.Name + ":" + doctor.Phone) == false)
                {
                    patients.Remove(item);
                }
            }

            dataGridView1.DataSource = patients;
        }
        private void button1_Click(object sender, EventArgs e)
        {
            dataGridView1.Dock    = DockStyle.Fill;
            dataGridView1.Visible = true;



            List <Patient>  patients        = new List <Patient>();
            PatientServices patientServices = new PatientServices();

            patients = patientServices.GetAllCurrent();
            dataGridView1.DataSource = patients;

            label14.Hide();
            label15.Hide();
            textBox10.Hide();
            textBox11.Hide();
        }