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