Exemplo n.º 1
0
        private async Task Initialize()
        {
            IsBusy = true;

            //  Database communication object to interact with our database
            DatabaseCommunication database = new DatabaseCommunication();

            if (Behavior.Task == "Duration")
            {
                await database.getGenericModelBatch <BehaviorDurationTaskModel, DurationTaskModel>(Behavior.Id);
            }
            if (Behavior.Task == "Frequency")
            {
                await database.getGenericModelBatch <BehaviorFrequencyTaskModel, FrequencyTaskModel>(Behavior.Id);
            }
            if (Behavior.Task == "PassFail")
            {
                await database.getGenericModelBatch <BehaviorPassFailTaskModel, PassFailTaskModel>(Behavior.Id);
            }


            //Tasks = await database.getGenericModelBatch<BehaviorSubcategoryModel, SubcategoryModel>(Behavior.Id);

            IsBusy = false;
        }
Exemplo n.º 2
0
        private async Task Initialize()
        {
            IsBusy = true;

            //  Database communication object to interact with our database
            DatabaseCommunication database = new DatabaseCommunication();

            Behavior = await database.getGenericModelBatch <PatientBehaviorModel, BehaviorModel>(Patient.Id);

            IsBusy = false;
        }
        private async Task Initialize()
        {
            IsBusy = true;

            //  Database communication object to interact with our database
            DatabaseCommunication database = new DatabaseCommunication();

            Patients = await database.getGenericModelBatch <TeacherPatientModel, PatientModel>(Teacher.Id);

            IsBusy = false;
        }