Exemplo n.º 1
0
        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;
                        }
                    }
                }
            }
        }
Exemplo n.º 2
0
        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");
        }
Exemplo n.º 4
0
    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");
        }