public async void ExecuteNavigateCommand(DetailsItem item) { { if (item.MenuType == SafetyForAllApp.MenuType.MenuItemEnum.LogOut) { _menuService.LogOut(); } else { if (!string.IsNullOrEmpty(item.NavigationPath)) { await NavigationService.NavigateAsync(item.NavigationPath); } else { switch (item.Id) { case 3: // Id of the menu CopyEmbeddedContent("SafetyForAllApp.PdfFile.PersonalSafety.pdf", "PersonalSafety.pdf"); _documentViewer.ViewDocument(_pdfPath, "PersonalSafety.pdf"); break; } } } } }
void ExecuteOpenPdfCommand() { CopyEmbeddedContent("Musication.pdffile.freefeezelltheorybookvol1.pdf", "freefeezelltheorybookvol1.pdf"); _documentViewer.ViewDocument(_pdfPath, "freefeezelltheorybookvol1.pdf"); }
void ExecuteOpenPdfCommand() { CopyEmbeddedContent("LiveAble.PdfFiles.depression.pdf", "depression.pdf"); _documentViewer.ViewDocument(_pdfPath, "depression.pdf"); }
void ExecuteOpenPdfCommand() { CopyEmbeddedContent("Musication.pdffile.Resources.pdf", "Resources.pdf"); _documentViewer.ViewDocument(_pdfPath, "Resources.pdf"); }
void ExecuteOpenPdfCommand() { CopyEmbeddedContent("PrismAppExample.pdffile.MagPi78.pdf", "MagPi78.pdf"); _documentViewer.ViewDocument(_pdfPath, "MagPi78.pdf"); }