public void Dispose() { IsComplete = true; foreach (IJob job in J.OfType <IDisposable>()) { (job as IDisposable).Dispose(); } sgSet.Dispose(); }
void Reset() { if (sgSet != null) { sgSet.Dispose(); } jDemagnetizer.Finish(); checkBox2.Enabled = true; checkBox3.Enabled = true; }