void ReleaseDesignerOutlets() { if (ButtonAbout != null) { ButtonAbout.Dispose(); ButtonAbout = null; } if (ButtonLoadGame != null) { ButtonLoadGame.Dispose(); ButtonLoadGame = null; } if (MapImage != null) { MapImage.Dispose(); MapImage = null; } if (ProgressBar != null) { ProgressBar.Dispose(); ProgressBar = null; } }
void ReleaseDesignerOutlets() { if (ButtonAbout != null) { ButtonAbout.Dispose(); ButtonAbout = null; } if (ButtonPrivacy != null) { ButtonPrivacy.Dispose(); ButtonPrivacy = null; } if (LabelEmotionSubscriptionKey != null) { LabelEmotionSubscriptionKey.Dispose(); LabelEmotionSubscriptionKey = null; } if (LabelShowDescriptionConfidence != null) { LabelShowDescriptionConfidence.Dispose(); LabelShowDescriptionConfidence = null; } if (LabelShowOriginalDescription != null) { LabelShowOriginalDescription.Dispose(); LabelShowOriginalDescription = null; } if (LabelTextToSpeech != null) { LabelTextToSpeech.Dispose(); LabelTextToSpeech = null; } if (LabelTranslatorSubscriptionKey != null) { LabelTranslatorSubscriptionKey.Dispose(); LabelTranslatorSubscriptionKey = null; } if (LabelVisionSubscriptionKey != null) { LabelVisionSubscriptionKey.Dispose(); LabelVisionSubscriptionKey = null; } if (LinkSubscribeEmotion != null) { LinkSubscribeEmotion.Dispose(); LinkSubscribeEmotion = null; } if (LinkSubscribeVision != null) { LinkSubscribeVision.Dispose(); LinkSubscribeVision = null; } if (LinkTranslatorSubscriptionKey != null) { LinkTranslatorSubscriptionKey.Dispose(); LinkTranslatorSubscriptionKey = null; } if (SwitchShowDescriptionConfidence != null) { SwitchShowDescriptionConfidence.Dispose(); SwitchShowDescriptionConfidence = null; } if (SwitchShowOriginalDescription != null) { SwitchShowOriginalDescription.Dispose(); SwitchShowOriginalDescription = null; } if (SwitchTextToSpeech != null) { SwitchTextToSpeech.Dispose(); SwitchTextToSpeech = null; } if (TextEmotionSubscriptionKey != null) { TextEmotionSubscriptionKey.Dispose(); TextEmotionSubscriptionKey = null; } if (TextTranslatorSubscriptionKey != null) { TextTranslatorSubscriptionKey.Dispose(); TextTranslatorSubscriptionKey = null; } if (TextVisionSubscriptionKey != null) { TextVisionSubscriptionKey.Dispose(); TextVisionSubscriptionKey = null; } }