/* 在这里关闭文件、线程、窗口、端口等操作 */ public void Close() { if (this.mCodeEditor != null) { this.mCodeEditor.CloseWindow(); } if (this.mCurveWindow != null) { this.mCurveWindow.CloseWindow(); } if (this.mDataPump != null) { this.mDataPump.Close(); } if (this.mDataProvider != null) { this.mDataProvider.Close(); } if (this.mDataStore != null) { StoreCtrl sc = (StoreCtrl)mDataStore; sc.Close(); } }
public void UpdateStoreFile(string file_name) { if (mDataStore != null) { StoreCtrl sc = (StoreCtrl)mDataStore; sc.Close(); } dataStore = new CSVStore(file_name); StoreCtrl sc1 = (StoreCtrl)mDataStore; sc1.Start(); }