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