コード例 #1
0
 private void InitialiseAllStrings()
 {
     CreditsTitleLabel.Text       = Application.LocalizedString("Credits");
     NextRefillLabel.Text         = Application.LocalizedString("NextRefill");
     LastRefreshBatteryLabel.Text = Application.LocalizedString("Battery");
     RefreshBatteryButton.SetTitle(Application.LocalizedString("Update"), UIControlState.Normal);
     BatteryLabel.Text = Application.LocalizedString("Battery");
 }
コード例 #2
0
        public override void ViewDidUnload()
        {
            base.ViewDidUnload();

            App.SeekiosChanged          -= App_SeekiosChanged;
            App.RemainingRequestChanged -= OnRemainingRequestChanged;
            App.Locator.ModeDontMove.SeekiosMovedNotified   -= ModeDontMove_SeekiosMovedNotified;
            App.Locator.ModeZone.OnSeekiosOutOfZoneNotified -= ModeZone_OnSeekiosOutOfZoneNotified;
            RefreshBatteryButton.TouchUpInside -= RefreshBatteryButton_TouchUpInside;
            HelpCreditCostButton.TouchDown     -= HelpCreditCostButton_TouchDown;
            NeedUpdateButton.TouchDown         -= NeedUpdateButton_TouchDown;

            SeekiosImageView.Dispose();
            CreditsTitleLabel.Dispose();
            NextRefillLabel.Dispose();
            LastRefreshBatteryLabel.Dispose();
            RefreshBatteryButton.Dispose();
            BatteryLabel.Dispose();
            BatteryIndicator.Dispose();
            RefreshBatteryButton.Dispose();
            //Tableview.Dispose();

            _seekiosSelected = null;
        }
コード例 #3
0
        void ReleaseDesignerOutlets()
        {
            if (AlertImage != null)
            {
                AlertImage.Dispose();
                AlertImage = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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