private void ShowSection(Section section) { if (section is TopicSection) { ViewModelNavigator.PushAsync(new TopicPageViewModel(section.SectionId)); return; } var telSection = section as TelSection; if (telSection != null) { //Device.OpenUri(new Uri(string.Format("tel:{0}", telSection.PhoneNumber))); ViewModelNavigator.PushAsync(new TopicPageViewModel("Calling...", telSection.PhoneNumber)); return; } if (section is EndSection) { return; } if (section.HasSubSections) { ViewModelNavigator.PushAsync(new SectionPageViewModel(section.SectionId)); return; } }
private void ShowSectionPage(string sectionId) { ViewModelNavigator.PushAsync(new SectionPageViewModel(sectionId)); }