public MainModule() { DalsaMemObj = new DalsaMember(); GrabM = new GrabMana(ImgBasePath); CameraSet = new CameraSetting(); IConnection DalsaConnect = new Connection(); AFMeasrue = new AFCalc(); DataFullScan = new FullScanData(); AcsXYZControl = new AcsContol(); CreateDeviceMana(DalsaConnect); TimerSetting(); StatusFullScan = FullScanState.Wait; FeedBackPos = new double[3]; }
public void DestroysObjects(IMemberDefine dalsamem) { if (dalsamem.Xfer != null) { dalsamem.Xfer.Destroy(); dalsamem.Xfer.Dispose(); } if (dalsamem.AcqDevice != null) { dalsamem.AcqDevice.Destroy(); dalsamem.AcqDevice.Dispose(); } if (dalsamem.Acquisition != null) { dalsamem.Acquisition.Destroy(); dalsamem.Acquisition.Dispose(); } if (dalsamem.Buffers != null) { dalsamem.Buffers.Destroy(); dalsamem.Buffers.Dispose(); } if (dalsamem.View != null) { dalsamem.View.Destroy(); dalsamem.View.Dispose(); } if (dalsamem.ServerLocation != null) { dalsamem.ServerLocation.Dispose(); } }