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;
 }
示例#2
0
 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;
 }
示例#3
0
 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();
 }