public void Dispose() { htWindow.Dispose(); (Content as Page_CreateRecipe).DataContext = null; (Content as Page_CreateRecipe).Close(); (surfaceDetection as SurfaceDetection).OnSaveXML -= SaveXML; surfaceDetection.Dispose(); Content = null; SurfaceDetectionObject = null; SurfaceDetectionParameter = null; LoadRegionUserRegions = null; Procedures = null; }
public void Dispose() { htWindow.Dispose(); (Content as Page_CreateRecipe).DataContext = null; (Content as Page_CreateRecipe).Close(); (createCutRegionModel as CreateCutRegionModel).OnSaveXML -= SaveXML; createCutRegionModel.Dispose(); Content = null; CutRegionObject = null; CutRegionParameter = null; CutRegionUserRegions = null; OriRegionUserRegions = null; Procedures = null; CutRegionRecipeNames = null; }
public virtual void Dispose() { (cutOutDie as CutOutDie).OnResetDieRegion -= OnResetDieRegion; (goldenModelInspectVerify as GoldenModelInspectVerify).OnSaveXML -= SaveXML; htWindow.Dispose(); (Content as Page_CreateRecipe).DataContext = null; (Content as Page_CreateRecipe).Close(); Content = null; Procedures = null; cutOutDieFrame.Dispose(); cutOutDie.Dispose(); addMatchRegion.Dispose(); addMatchRegionFrame.Dispose(); addInspectRegion.Dispose(); addRejectRegion.Dispose(); addSubRegion.Dispose(); createPositionModel.Dispose(); createGoldenModel.Dispose(); frameLocateInspectVerify.Dispose(); goldenModelInspectVerify.Dispose(); }