public void addButtonFunctionality(LevelPage parent) { b_cancel.Clicked += delegate { parent.Navigation.PopModalAsync(); }; b_submit.Clicked += delegate { parent.addSection(onComplete()); parent.Navigation.PopModalAsync(); }; }
/** * populateBeartracks * Since pathways can be varied, beartracks are not stored locally * reloads beartracks into the navigation bar * @param name="tracks" */ public void populateBeartracks(Stack <LevelPage> tracks) { if (!(tracks == null || tracks.Count == 0)) { LevelPage[] arr_tracks = new LevelPage[tracks.Count]; tracks.CopyTo(arr_tracks, 0); int lasttrack = 4; for (int i = arr_tracks.Length; lasttrack != 0 && i > 0; i--) { lasttrack--; sl_tracks.Children.Add(new BearTrack(arr_tracks[i - 1])); } } }