public BodyContentEditorContext(StatusControlContext statusContext, IBodyContent dbEntry) { StatusContext = statusContext ?? new StatusControlContext(); BodyContentFormat = new ContentFormatChooserContext(StatusContext); RemoveLineBreaksFromSelectedCommand = new Command(() => StatusContext.RunBlockingAction(RemoveLineBreaksFromSelected)); StatusContext.RunFireAndForgetTaskWithUiToastErrorReturn(() => LoadData(dbEntry)); }
public UpdateNotesEditorContext(StatusControlContext statusContext, IUpdateNotes dbEntry) { StatusContext = statusContext ?? new StatusControlContext(); UpdateNotesFormat = new ContentFormatChooserContext(statusContext); StatusContext.RunFireAndForgetTaskWithUiToastErrorReturn(() => LoadData(dbEntry)); }