コード例 #1
0
        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);
                }
            }
        }