public async Task <bool> RemoveAsync() { var canRemove = !HasChanges || await dialogService.ConfirmLocalizedAsync("Mindmap_Remove_Confirm"); if (canRemove) { await documentFile.DeleteAsync(); Close(); Cleanup(); } return(canRemove); }