Пример #1
0
 private void InitialiseAllStrings()
 {
     OldDateLabel.Text    = Application.LocalizedString("OldDate");
     RecentDateLabel.Text = Application.LocalizedString("RecentDate");
     LowerDateLabel.Text  = Application.LocalizedString("LowerDateExample");
     UpperDateLabel.Text  = Application.LocalizedString("UpperDateExample");
     NextPositionButton.SetTitle(Application.LocalizedString("NextPosition"), UIControlState.Normal);
     PreviousPositionButton.SetTitle(Application.LocalizedString("PreviousPosition"), UIControlState.Normal);
 }
Пример #2
0
        void ReleaseDesignerOutlets()
        {
            if (actionSheetDatePicker != null)
            {
                actionSheetDatePicker.Dispose();
                actionSheetDatePicker = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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