Beispiel #1
0
        public async void dataComments()
        {
            isBusy = true;
            Database_API database = new Database_API();

            residents = await database.GetResidentsAsync();

            residents = await database.GetResidentsAsync();

            comments = await database.GetCommentsAsync();

            //Discussions discussionNow = (from discussion in discussions where discussion.DiscussionTitle == discussionTitle select discussion).First();
            //ObservableCollection<Comments> commentsNow = (from comment in comments where comment.DisID == discussionNow.DiscussionID select comment).ToObservableCollection();
            comments = commentsWithName(comments);
            OnPropertyChanged("Comments");
            isBusy = false;
            OnPropertyChanged("IsBusy");
            //string abc = "0";
        }