public TreattheInfantGuideTreatmentPage(TreatTitle title) { InitializeComponent(); this.Title = title.title; var contentPage = new NavigationPage(new TreatTitleContentPage(title.guide)); contentPage.Title = "Guide"; var treatmentsPage = new NavigationPage(new TreatTitleTreatmentsPage(title.id)); treatmentsPage.Title = "Treatment"; Children.Add(contentPage); Children.Add(treatmentsPage); }
//TreatTitle table public Task <int> saveTreatTitle(TreatTitle treatTitle) { return(database.InsertAsync(treatTitle)); }