コード例 #1
0
        public static DBConnectionObject getInstance()
        {
            if (instance == null)
            {
                instance = new DBConnectionObject();
            }

            return(instance);
        }
コード例 #2
0
        public string getNextSymptom()
        {
            // this will take the current visits symptoms, and decide what next symptom should be asked.
            DBConnectionObject conn = DBConnectionObject.getInstance();
            string             suggestedNextSymptom = conn.getDiagnosisWizardSymptomByPreviousResponses(CurrentResults.PreviousResponses);

            CurrentResults.CurrentBestSymptom = suggestedNextSymptom;
            return(suggestedNextSymptom);
        }