示例#1
0
 private void OnClearMappingToRCAD(object parameter)
 {
     if (IsMappedToRCAD)
     {
         _rcadMappingData = null;
         _sequence.Metadata.Remove(Mapper.rCADMappingData);
         OnPropertiesChanged("IsMappedToRCAD", "rCADSeqID", "rCADTaxID", "rCADLocationID");
     }
 }
示例#2
0
        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");
            }
        }