Ejemplo n.º 1
0
        private void ShowInfo()
        {
            ActivityHelp help = currentFragment.GetHelp();

            VideoPlayerFragment helpVidFragment = new VideoPlayerFragment(help.HelpVideo, help.ActivityName, help.ActivityDescription);
            helpVidFragment.Show(SupportFragmentManager, "video_helper");

            helpVidFragment.StartVideo();
        }
Ejemplo n.º 2
0
        private async void ShowHelpDialog()
        {
            FinishReading();

            ActivityHelp help = await ServerData.FetchHelp(currentMode) as ActivityHelp;

            if (help == null) return;

            VideoPlayerFragment helpVidFragment = new VideoPlayerFragment(help.HelpVideo, help.ActivityName, help.ActivityDescription);
            helpVidFragment.Show(SupportFragmentManager, "video_helper");

            if (!string.IsNullOrWhiteSpace(help.HelpVideo))
            {
                helpVidFragment.StartVideo();
            }
        }