private void DisposeLastFileExporter() { if (null != this.fileExporter) { this.fileExporter.Dispose(); this.fileExporter = null; } DBHelper.SaveCacheData(); }
private void CreateFileExporter(DetectionParamsItem paramsItem) { lock (this) { if (null == this.fileExporter) { this.fileExporter = new ExportBase(paramsItem.DataFilePath, paramsItem.IsAppended); this.LoadLastStopCount(); } } }