Dispose() public method

public Dispose ( ) : void
return void
Example #1
0
 // Exit button pressed
 private void BuildTools_FormClosed(object sender, FormClosedEventArgs e)
 {
     _runner.CleanUp();
     _job.Dispose();
     Application.Exit();
     Environment.Exit(0);
 }
Example #2
0
 // Exit button pressed
 private void BuildTools_FormClosed(object sender, FormClosedEventArgs e)
 {
     _runner.CleanUp();
     if (_running)
     {
         _googleAnalytics.SendEvent("BuildTools Run", "Premature Cancelation");
         _googleAnalytics.EndTimer("BuildTools Run Time");
     }
     _job.Dispose();
     Application.Exit();
     Environment.Exit(0);
 }