Example #1
0
        public override void PrepareForSegue(UIStoryboardSegue segue, NSObject sender)
        {
            base.PrepareForSegue(segue, sender);

            if (segue.Identifier == "LoginSegue")
            {
                UINavigationController navController = (UINavigationController)segue.DestinationViewController;
                LoginViewController    loginVC       = (LoginViewController)navController.ViewControllers [0];
                loginVC.LoginEvent += new LoginEventHandler(LoggedIn);
            }
            else if (segue.Identifier == "AccountSegue")
            {
                AccountViewController accVC = (AccountViewController)segue.DestinationViewController;
                accVC.LogoutEvent += new LogoutEventHandler(LoggedOut);
            }
            else if (segue.Identifier == "NextTripDetailSegue")
            {
                TripDetailsViewController vc = (TripDetailsViewController)segue.DestinationViewController;
                vc.TripToShow = mNextTrip;
            }
            else if (segue.Identifier == "TripDetailsSegue")
            {
                TripDetailsViewController vc = (TripDetailsViewController)segue.DestinationViewController;
                vc.TripToShow = mTripSelected;
            }
        }
        public override void PrepareForSegue(UIStoryboardSegue segue, NSObject sender)
        {
            base.PrepareForSegue(segue, sender);

            if (segue.Identifier == "TripDetailsSegue")
            {
                TripDetailsViewController vc = (TripDetailsViewController)segue.DestinationViewController;
                vc.TripToShow = mTripSelected;
            }
        }
Example #3
0
        public override void PrepareForSegue(UIStoryboardSegue segue, NSObject sender)
        {
            base.PrepareForSegue(segue, sender);

            if (segue.Identifier == "PlanTripDetailsSegue")
            {
                GAI.SharedInstance.DefaultTracker.Send(GAIDictionaryBuilder.CreateEvent("ui_action", "trip details", "trip details", null).Build());
                TripDetailsViewController vc = (TripDetailsViewController)segue.DestinationViewController;
                vc.ItineraryToShow = mSelectedItinerary;
                vc.Criteria        = SearchResults.searchCriteria;
            }
        }