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

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

            //foreach (var id in teacherIds)
            _teacher1 = await database.getGenericModel <TeacherModel>(Teacher1.Id);

            _teacher2 = await database.getGenericModel <TeacherModel>(Teacher2.Id);


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

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

            DurationTask = await database.getGenericModel <DurationTaskModel>(DurationTask.Id);

            Occurences.Add(DurationTask);

            IsBusy = false;
        }