Exemple #1
0
 public void Dispose()
 {
     if (objBGPlayer != null)
     {
         objBGPlayer.OnShotBoxStatus           -= objPlayer1_OnShotBoxStatus;
         objBGPlayer.OnShotBoxControllerStatus -= objPlayer1_OnShotBoxStatus;
         objBGPlayer.Dispose();
         objBGPlayer = null;
     }
     if (objScorePlayer != null)
     {
         objScorePlayer.OnShotBoxStatus           -= objPlayer1_OnShotBoxStatus;
         objScorePlayer.OnShotBoxControllerStatus -= objPlayer1_OnShotBoxStatus;
         objScorePlayer.Dispose();
         objScorePlayer = null;
     }
     if (AppLink != null)
     {
         AppLink.Dispose();
         AppLink = null;
     }
     if (FileHandler != null)
     {
         FileHandler.Dispose();
         FileHandler = null;
     }
 }