private async Task LoadFile() { loadedFile = await fileIOHelper.LoadFileAsync(); if (loadedFile != null) { SetCurrentFileTitle(loadedFile.DisplayName); string fileContent = await fileIOHelper.GetContentFromFileAsync(loadedFile); if (fileContent != null) { SetRichEditBoxContent(fileContent); } } }