private void btnLoadPatientDatabase_Click(object sender, EventArgs e)
        {
            List <Query> queries = new List <Query> {
                new PatientQuery(cboProperty.Text, cboCriteria.Text, txtFilter.Text)
            };

            queries  = formatQueriesList(queries);
            patients = database.loadPatientsFromQuery(queries);

            if (patients.Count == 0)
            {
                MessageBox.Show("No results to show.", "Error");
            }
            else
            {
                PatientProfileSelection pps = new PatientProfileSelection(patients);
                pps.Show();
                this.Close();
            }
        }
        public int getPatientCount()
        {
            DatabaseAccess databaseAccess = new DatabaseAccess();

            return(databaseAccess.loadPatientsFromQuery(Queries).Count);
        }
        public List <Patient> getPatients()
        {
            DatabaseAccess databaseAccess = new DatabaseAccess();

            return(databaseAccess.loadPatientsFromQuery(Queries));
        }