コード例 #1
0
        private async void ProcessWorkOrdersAsync()
        {
            residents = await database_API.GetResidentsAsync();

            workOrder = ProcessWorkOrderWithNameAsync(workOrder);
            workOrder.WorkOrderMonth = DateTime.Now.ToString("MMMM dd");
            database_API.postNewWorkOrderAsync(workOrder);
        }
コード例 #2
0
        private async void PostCommentsAsync()
        {
            residents = await database_API.GetResidentsAsync();

            comment             = ProcessCommentsWithNameAsync(comment);
            comment.CommentTime = DateTime.Now.ToString("dd MMMM yyyy HH:mm");
            database_API.postNewCommentsAsync(comment);
        }
コード例 #3
0
        private async void ProcessFinesAsync()
        {
            administrators = await database_API.GetAdministratorsAsync();

            residents = await database_API.GetResidentsAsync();

            fines = ProcessFinesWithNameAsync(fines);
            database_API.postNewFineAsync(fines);
        }
コード例 #4
0
        private async void PostDiscussionsAsync()
        {
            residents = await database_API.GetResidentsAsync();

            discussion = ProcessDiscussionsWithNameAsync(discussion);
            discussion.DiscussionTime = DateTime.Now.ToString("dd MMMM yyyy HH:mm");
            database_API.postNewDiscussionsAsync(discussion);
            //var item = discussions[itemIndex];
        }
コード例 #5
0
        private async void dataGuests()
        {
            guests = await database.GetGuestAsync();

            residents = await database.GetResidentsAsync();

            guests = guestsWithName(guests);
            OnPropertyChanged("Guests");
        }
コード例 #6
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";
        }
コード例 #7
0
        public async void dataWorkOrders()
        {
            isBusy     = true;
            workOrders = await database.GetWorkOrdersAsync();

            residents = await database.GetResidentsAsync();

            workOrders = workOrderWithName(workOrders);
            OnPropertyChanged("WorkOrders");
            isBusy = false;
            OnPropertyChanged("IsBusy");
            string abc = "0";
        }
コード例 #8
0
        public async void dataDiscussions()
        {
            isBusy = true;
            Database_API database = new Database_API();

            residents = await database.GetResidentsAsync();

            discussions = await database.GetDiscussionsAsync();

            discussions = discussionsWithName(discussions);
            OnPropertyChanged("Discussions");
            isBusy = false;
            OnPropertyChanged("IsBusy");
            //string abc = "0";
        }
コード例 #9
0
ファイル: FineUserViewModel.cs プロジェクト: oshanoshu/myrez
        public async void dataFines()
        {
            //isBusy = true;
            Database_API database = new Database_API();

            residents = await database.GetResidentsAsync();

            fines = await database.GetFinesAsync();

            fines = finesWithName(fines);
            OnPropertyChanged("Fines");
            //isBusy = false;
            //OnPropertyChanged("IsBusy");
            //string abc = "0";
        }
コード例 #10
0
ファイル: GuestUserViewModel.cs プロジェクト: oshanoshu/myrez
        public async void dataGuests()
        {
            isBusy = true;

            residents = await database.GetResidentsAsync();

            guests = await database.GetGuestAsync();

            guestNow = guestsWithName(guests);
            OnPropertyChanged("Guest");
            checkinTime = guestNow.CheckinTime;
            OnPropertyChanged("CheckinTime");
            guestName = guestNow.GuestName;
            OnPropertyChanged("GuestName");
            isBusy = false;
            OnPropertyChanged("IsBusy");
            //string abc = "0";
        }