private async void ProcessWorkOrdersAsync() { residents = await database_API.GetResidentsAsync(); workOrder = ProcessWorkOrderWithNameAsync(workOrder); workOrder.WorkOrderMonth = DateTime.Now.ToString("MMMM dd"); database_API.postNewWorkOrderAsync(workOrder); }
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); }
private async void ProcessFinesAsync() { administrators = await database_API.GetAdministratorsAsync(); residents = await database_API.GetResidentsAsync(); fines = ProcessFinesWithNameAsync(fines); database_API.postNewFineAsync(fines); }
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]; }
private async void dataGuests() { guests = await database.GetGuestAsync(); residents = await database.GetResidentsAsync(); guests = guestsWithName(guests); OnPropertyChanged("Guests"); }
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"; }
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"; }
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"; }
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"; }
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"; }