public void PresentFamilyPage(Rock.Client.Family family) { // add this family to the history bar, and setup a delegate that will call the internal presentation function HistoryBar.TryPushHistoryItem(family, PresentFamilyPage_Internal); // call the presentation function PresentFamilyPage_Internal(family); }
public void FamilyUpdated(Rock.Client.Family family) { // this is called when a page (likely the current family page) updates a family. // This lets us notify SearchFamilies and the HistoryBar. if (HistoryBar.TryUpdateHistoryItem(family) == false) { // it failed to update, so it's likely a new family. Add it to the history. HistoryBar.TryPushHistoryItem(family, PresentFamilyPage_Internal); } SearchFamiliesViewController.TryUpdateFamily(family); }
protected void CreateSubNavigationController( ) { // Create the sub navigation controller SubNavigationController = new UINavigationController(); SubNavigationController.NavigationBarHidden = true; SubNavigationController.Delegate = new NavDelegate( ); // add this navigation controller (and its toolbar) as a child // of this ContainerViewController, which will effectively make it a child // of the primary navigation controller. AddChildViewController(SubNavigationController); View.AddSubview(SubNavigationController.View); // setup the history bar that tracks families previously viewed. // we add it LAST so it has the highest Z order. HistoryBar = new HistoryBar(View.Frame, delegate { PresentViewController(SettingsViewController, true, null); }); View.AddSubview(HistoryBar); }
protected void CreateSubNavigationController( ) { // Create the sub navigation controller SubNavigationController = new UINavigationController(); SubNavigationController.NavigationBarHidden = true; SubNavigationController.Delegate = new NavDelegate( ); // add this navigation controller (and its toolbar) as a child // of this ContainerViewController, which will effectively make it a child // of the primary navigation controller. AddChildViewController( SubNavigationController ); View.AddSubview( SubNavigationController.View ); // setup the history bar that tracks families previously viewed. // we add it LAST so it has the highest Z order. HistoryBar = new HistoryBar( View.Frame, delegate { PresentViewController( SettingsViewController, true, null ); } ); View.AddSubview( HistoryBar ); }