void ReleaseDesignerOutlets() { if (AccuracyLabel != null) { AccuracyLabel.Dispose(); AccuracyLabel = null; } if (AnimationImage != null) { AnimationImage.Dispose(); AnimationImage = null; } if (DistanceLabel != null) { DistanceLabel.Dispose(); DistanceLabel = null; } if (OpenMapButton != null) { OpenMapButton.Dispose(); OpenMapButton = null; } if (TaskDescLabel != null) { TaskDescLabel.Dispose(); TaskDescLabel = null; } }
void ReleaseDesignerOutlets() { if (AccuracyLabel != null) { AccuracyLabel.Dispose(); AccuracyLabel = null; } if (DigitView != null) { DigitView.Dispose(); DigitView = null; } if (PredictionLabel != null) { PredictionLabel.Dispose(); PredictionLabel = null; } }
protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { if (ExperienceBar != null) { if (!ExperienceBar.IsDisposed) { ExperienceBar.Dispose(); } ExperienceBar = null; } if (NewMailIcon != null) { if (!NewMailIcon.IsDisposed) { NewMailIcon.Dispose(); } NewMailIcon = null; } if (ClassLabel != null) { if (!ClassLabel.IsDisposed) { ClassLabel.Dispose(); } ClassLabel = null; } if (LevelLabel != null) { if (!LevelLabel.IsDisposed) { LevelLabel.Dispose(); } LevelLabel = null; } if (ACLabel != null) { if (!ACLabel.IsDisposed) { ACLabel.Dispose(); } ACLabel = null; } if (MRLabel != null) { if (!MRLabel.IsDisposed) { MRLabel.Dispose(); } MRLabel = null; } if (DCLabel != null) { if (!DCLabel.IsDisposed) { DCLabel.Dispose(); } DCLabel = null; } if (MCLabel != null) { if (!MCLabel.IsDisposed) { MCLabel.Dispose(); } MCLabel = null; } if (SCLabel != null) { if (!SCLabel.IsDisposed) { SCLabel.Dispose(); } SCLabel = null; } if (AccuracyLabel != null) { if (!AccuracyLabel.IsDisposed) { AccuracyLabel.Dispose(); } AccuracyLabel = null; } if (AgilityLabel != null) { if (!AgilityLabel.IsDisposed) { AgilityLabel.Dispose(); } AgilityLabel = null; } if (HealthLabel != null) { if (!HealthLabel.IsDisposed) { HealthLabel.Dispose(); } HealthLabel = null; } if (ManaLabel != null) { if (!ManaLabel.IsDisposed) { ManaLabel.Dispose(); } ManaLabel = null; } if (ExperienceLabel != null) { if (!ExperienceLabel.IsDisposed) { ExperienceLabel.Dispose(); } ExperienceLabel = null; } if (AttackModeLabel != null) { if (!AttackModeLabel.IsDisposed) { AttackModeLabel.Dispose(); } AttackModeLabel = null; } if (PetModeLabel != null) { if (!PetModeLabel.IsDisposed) { PetModeLabel.Dispose(); } PetModeLabel = null; } } }