public async Task ReadDocumentAsync() { if (String.IsNullOrEmpty(Settings.CurrentFile)) { await DeviceServices.ExitAsync(); return; } Windows.Storage.StorageFile file = await Windows.Storage.StorageFile.GetFileFromPathAsync(Settings.CurrentFile); NoteNavigator.Reset(); NoteNavigator.Document.Parse(new System.IO.StringReader(await Windows.Storage.FileIO.ReadTextAsync(file))); mdOrganizer.Services.NoteNavigator.FileName = file.DisplayName; }
private void AutoClose() { DeviceServices.ExitAsync(); }