示例#1
0
        /// <summary>
        /// Shows the route card.
        /// </summary>
        /// <param name="items">List of stops.</param>
        /// <param name="walkTime">Walk time.</param>
        private void ShowRouteCard(List <Feature> items, string walkTime)
        {
            this.InvokeOnMainThread(() =>
            {
                // Show the tableview and populate it
                RouteTableView.Source = new RouteTableSource(items);
                RouteTableView.ReloadData();

                WalkTimeLabel.Text = walkTime;

                UIView.Transition(
                    RouteCard,
                    0.2,
                    UIViewAnimationOptions.CurveLinear | UIViewAnimationOptions.LayoutSubviews,
                    () =>
                {
                    RouteCard.Alpha = 1;
                },
                    null);

                var buttonConstraint                 = 35 + RouteCard.Frame.Height;
                ButtonBottomConstraint.Constant      = buttonConstraint;
                FloorPickerBottomConstraint.Constant = buttonConstraint;
            });
        }
        void ReleaseDesignerOutlets()
        {
            if (AutosuggestionsTableView != null)
            {
                AutosuggestionsTableView.Dispose();
                AutosuggestionsTableView = null;
            }

            if (ButtonBottomConstraint != null)
            {
                ButtonBottomConstraint.Dispose();
                ButtonBottomConstraint = null;
            }

            if (ContactCardView != null)
            {
                ContactCardView.Dispose();
                ContactCardView = null;
            }

            if (CurrentLocationButton != null)
            {
                CurrentLocationButton.Dispose();
                CurrentLocationButton = null;
            }

            if (DirectionsButton != null)
            {
                DirectionsButton.Dispose();
                DirectionsButton = null;
            }

            if (FloorPickerBottomConstraint != null)
            {
                FloorPickerBottomConstraint.Dispose();
                FloorPickerBottomConstraint = null;
            }

            if (FloorsTableView != null)
            {
                FloorsTableView.Dispose();
                FloorsTableView = null;
            }

            if (HeightConstraint != null)
            {
                HeightConstraint.Dispose();
                HeightConstraint = null;
            }

            if (HomeButton != null)
            {
                HomeButton.Dispose();
                HomeButton = null;
            }

            if (LocationSearchBar != null)
            {
                LocationSearchBar.Dispose();
                LocationSearchBar = null;
            }

            if (MainLabel != null)
            {
                MainLabel.Dispose();
                MainLabel = null;
            }

            if (MapView != null)
            {
                MapView.Dispose();
                MapView = null;
            }

            if (RouteCard != null)
            {
                RouteCard.Dispose();
                RouteCard = null;
            }

            if (RouteTableView != null)
            {
                RouteTableView.Dispose();
                RouteTableView = null;
            }

            if (SearchToolbar != null)
            {
                SearchToolbar.Dispose();
                SearchToolbar = null;
            }

            if (SecondaryLabel != null)
            {
                SecondaryLabel.Dispose();
                SecondaryLabel = null;
            }

            if (SettingsButton != null)
            {
                SettingsButton.Dispose();
                SettingsButton = null;
            }

            if (WalkTimeLabel != null)
            {
                WalkTimeLabel.Dispose();
                WalkTimeLabel = null;
            }
        }