Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 private void AutoClose()
 {
     DeviceServices.ExitAsync();
 }