private void OnClearMappingToRCAD(object parameter) { if (IsMappedToRCAD) { _rcadMappingData = null; _sequence.Metadata.Remove(Mapper.rCADMappingData); OnPropertiesChanged("IsMappedToRCAD", "rCADSeqID", "rCADTaxID", "rCADLocationID"); } }
private void OnMappedToRCAD(object parameter) { bool?mappedSuccessfully = parameter as bool?; if (mappedSuccessfully == null) { return; } if (_sequence.Metadata.ContainsKey(Mapper.rCADMappingData)) { _rcadMappingData = (SequenceMappingData)_sequence.Metadata[Mapper.rCADMappingData]; OnPropertiesChanged("IsMappedToRCAD", "rCADSeqID", "rCADTaxID", "rCADLocationID"); } }