private void InitialiseAllStrings() { TitleLabel.Text = Application.LocalizedString("CreditCostTitleLabel"); CreditCost1Label.Text = Application.LocalizedString("CreditCost1"); CreditCost2Label.Text = Application.LocalizedString("CreditCost2"); CreditCost3Label.Text = Application.LocalizedString("CreditCost3"); CreditCost4Label.Text = Application.LocalizedString("CreditCost4"); CreditCost5Label.Text = Application.LocalizedString("CreditCost5"); CreditCost6Label.Text = Application.LocalizedString("CreditCost6"); CreditCost7Label.Text = Application.LocalizedString("CreditCost7"); MoreExplanationButton.SetTitle(Application.LocalizedString("MoreCreditExplanation"), UIControlState.Normal); }
void ReleaseDesignerOutlets() { if (CreditCost1Label != null) { CreditCost1Label.Dispose(); CreditCost1Label = null; } if (CreditCost2Label != null) { CreditCost2Label.Dispose(); CreditCost2Label = null; } if (CreditCost3Label != null) { CreditCost3Label.Dispose(); CreditCost3Label = null; } if (CreditCost4Label != null) { CreditCost4Label.Dispose(); CreditCost4Label = null; } if (CreditCost5Label != null) { CreditCost5Label.Dispose(); CreditCost5Label = null; } if (CreditCost6Label != null) { CreditCost6Label.Dispose(); CreditCost6Label = null; } if (CreditCost7Label != null) { CreditCost7Label.Dispose(); CreditCost7Label = null; } if (MoreExplanationButton != null) { MoreExplanationButton.Dispose(); MoreExplanationButton = null; } if (ScrollView != null) { ScrollView.Dispose(); ScrollView = null; } if (TitleLabel != null) { TitleLabel.Dispose(); TitleLabel = null; } }