private void GotoLessonTypeAsync() { if (SelectedLesson == null) { return; } string view = string.Empty; switch (SelectedLesson.LessonType) { case LessonType.Discussion: view = GlobalResources.DiscussionContentView; break; case LessonType.Interactive: view = GlobalResources.InteractiveContentView; break; case LessonType.InteractiveWithoutLive: view = GlobalResources.InteractiveWithouLiveContentView; break; } _lessonInfo.CloneLessonInfo(SelectedLesson); _regionManager.RequestNavigate(RegionNames.ContentRegion, new Uri(view, UriKind.Relative)); }
private async Task AutoSelectLessonAsync() { _visualizeShellService.SetSelectedMenu(GlobalResources.DiscussionNavView); SelectedLesson = Lessons.FirstOrDefault(l => l.Id == _lessonInfo.Id); await SelectionChangedAsync(_lessonInfo); _lessonInfo.CloneLessonInfo(new LessonInfo()); }