protected override void DisposeManagedResources() { ClearPlayers(); homeBench.Dispose(); awayBench.Dispose(); field.Dispose(); subPlayers.Dispose(); subInjury.Dispose(); homeButton.Dispose(); awayButton.Dispose(); base.DisposeManagedResources(); }
protected override void Dispose(bool disposing) { ClearPlayers(); homeBench.Dispose(); awayBench.Dispose(); field.Dispose(); subPlayers.Dispose(); subInjury.Dispose(); homeButton.Dispose(); awayButton.Dispose(); base.Dispose(disposing); }