/// ------------------------------------------------------------------------------------ public void Dispose() { if (_annotationFile != null) { _annotationFile.Dispose(); } _annotationFile = null; _xmlFileSerializer = null; _statisticsProvider = null; _presetProvider = null; _fieldUpdater = null; MetaDataFieldValues = null; ParentElement = null; }
/// ------------------------------------------------------------------------------------ public void SetAnnotationFile(AnnotationComponentFile annotationFile) { _annotationFile = (annotationFile != null && File.Exists(annotationFile.PathToAnnotatedFile) ? annotationFile : null); }