//Two constructors because we need to wait for async data load of users before we can accurately set UI state when workOrderId is passed public SiteServicePage(TabbedSiteServicePage tabParent, long siteServiceId) { TabParent = tabParent; Initialize(); ((App)App.Current).GetUsers().ContinueWith(a => LoadUsersAndWorkOrder(siteServiceId, a.Result)); }
public SiteServicePage(TabbedSiteServicePage tabParent) { TabParent = tabParent; Initialize(); ((App)App.Current).GetUsers().ContinueWith(a => LoadUsers(a.Result)); }