public PhotoListWithActionsContext(StatusControlContext statusContext) { SetupContextAndCommands(statusContext); ListContext = new PhotoListContext(StatusContext, PhotoListContext.PhotoListLoadMode.Recent); StatusContext.RunFireAndForgetBlockingTaskWithUiMessageReturn(ListContext.LoadData); }
public PhotoListWithActionsContext(StatusControlContext statusContext, Func <Task <List <PhotoContent> > > reportFilter) { SetupContextAndCommands(statusContext); ListContext = new PhotoListContext(StatusContext, PhotoListContext.PhotoListLoadMode.ReportQuery) { ReportGenerator = reportFilter }; StatusContext.RunFireAndForgetBlockingTaskWithUiMessageReturn(ListContext.LoadData); }