private void SetupUIWithPacks() { foreach (var product in ListInAppProducts) { switch (product.ProductIdentifier) { case "com.thingsoftomorrow.seekios.observation": ObservationButton.SetTitle(string.Format(Application.LocalizedString("BuyPrice"), product.FormattedPrice), UIControlState.Normal); //ObservationEuroLabel.Text = product.FormattedPrice; -- HIDDEN CONTROL break; case "com.thingsoftomorrow.seekios.discovery": DiscoveryButton.SetTitle(string.Format(Application.LocalizedString("BuyPrice"), product.FormattedPrice), UIControlState.Normal); //DiscoveryEuroLabel.Text = product.FormattedPrice; break; case "com.thingsoftomorrow.seekios.exploration": ExplorationButton.SetTitle(string.Format(Application.LocalizedString("BuyPrice"), product.FormattedPrice), UIControlState.Normal); //ExplorationEuroLabel.Text = product.FormattedPrice; break; case "com.thingsoftomorrow.seekios.aventure": AdventureButton.SetTitle(string.Format(Application.LocalizedString("BuyPrice"), product.FormattedPrice), UIControlState.Normal); //AdventureEuroLabel.Text = product.FormattedPrice; break; case "com.thingsoftomorrow.seekios.epopee": EpicButton.SetTitle(string.Format(Application.LocalizedString("BuyPrice"), product.FormattedPrice), UIControlState.Normal); //EpicEuroLabel.Text = product.FormattedPrice; break; } } }
void ReleaseDesignerOutlets() { if (AdvCreditLabel != null) { AdvCreditLabel.Dispose(); AdvCreditLabel = null; } if (AdventureButton != null) { AdventureButton.Dispose(); AdventureButton = null; } if (AdventureCreditLabel != null) { AdventureCreditLabel.Dispose(); AdventureCreditLabel = null; } if (AdventureEuroLabel != null) { AdventureEuroLabel.Dispose(); AdventureEuroLabel = null; } if (AdventureTitle != null) { AdventureTitle.Dispose(); AdventureTitle = null; } if (AdventureView != null) { AdventureView.Dispose(); AdventureView = null; } if (DiscoCreditLabel != null) { DiscoCreditLabel.Dispose(); DiscoCreditLabel = null; } if (DiscoveryButton != null) { DiscoveryButton.Dispose(); DiscoveryButton = null; } if (DiscoveryCreditLabel != null) { DiscoveryCreditLabel.Dispose(); DiscoveryCreditLabel = null; } if (DiscoveryEuroLabel != null) { DiscoveryEuroLabel.Dispose(); DiscoveryEuroLabel = null; } if (DiscoveryTitle != null) { DiscoveryTitle.Dispose(); DiscoveryTitle = null; } if (DiscoveryView != null) { DiscoveryView.Dispose(); DiscoveryView = null; } if (EpicButton != null) { EpicButton.Dispose(); EpicButton = null; } if (EpicCreditLabel != null) { EpicCreditLabel.Dispose(); EpicCreditLabel = null; } if (EpicEuroLabel != null) { EpicEuroLabel.Dispose(); EpicEuroLabel = null; } if (EpicTitle != null) { EpicTitle.Dispose(); EpicTitle = null; } if (EpicView != null) { EpicView.Dispose(); EpicView = null; } if (ExploCreditLabel != null) { ExploCreditLabel.Dispose(); ExploCreditLabel = null; } if (ExplorationButton != null) { ExplorationButton.Dispose(); ExplorationButton = null; } if (ExplorationCreditLabel != null) { ExplorationCreditLabel.Dispose(); ExplorationCreditLabel = null; } if (ExplorationEuroLabel != null) { ExplorationEuroLabel.Dispose(); ExplorationEuroLabel = null; } if (ExplorationTitle != null) { ExplorationTitle.Dispose(); ExplorationTitle = null; } if (ExplorationView != null) { ExplorationView.Dispose(); ExplorationView = null; } if (InformationTextView != null) { InformationTextView.Dispose(); InformationTextView = null; } if (InformationView != null) { InformationView.Dispose(); InformationView = null; } if (ObsCreditLabel != null) { ObsCreditLabel.Dispose(); ObsCreditLabel = null; } if (ObservationButton != null) { ObservationButton.Dispose(); ObservationButton = null; } if (ObservationCreditsLabel != null) { ObservationCreditsLabel.Dispose(); ObservationCreditsLabel = null; } if (ObservationEuroLabel != null) { ObservationEuroLabel.Dispose(); ObservationEuroLabel = null; } if (ObservationTitle != null) { ObservationTitle.Dispose(); ObservationTitle = null; } if (ObservationView != null) { ObservationView.Dispose(); ObservationView = null; } }