Inheritance: SIL.Cog.Application.ViewModels.SegmentViewModel
Esempio n. 1
0
 public SegmentMappingsTableSegmentPairViewModel(SegmentMappingsViewModel mappings, SegmentMappingViewModel.Factory mappingFactory,
                                                 SegmentMappingsTableSegmentViewModel segment1, SegmentMappingsTableSegmentViewModel segment2, int delta, bool enabled)
 {
     _mappingFactory = mappingFactory;
     _segment1       = segment1;
     _segment2       = segment2;
     _enabled        = enabled;
     _delta          = delta;
     _mappings       = mappings;
     _mappings.ConstrainToSegmentPair(_segment1.StrRep, _segment2.StrRep);
     _mappings.ImportEnabled = false;
     _mappings.Mappings.CollectionChanged += MappingsChanged;
     _toggleMappingCommand = new RelayCommand(ToggleMapping);
 }
        public SegmentMappingsTableSegmentPairViewModel(SegmentMappingsViewModel mappings, SegmentMappingViewModel.Factory mappingFactory,
			SegmentMappingsTableSegmentViewModel segment1, SegmentMappingsTableSegmentViewModel segment2, int delta, bool enabled)
        {
            _mappingFactory = mappingFactory;
            _segment1 = segment1;
            _segment2 = segment2;
            _enabled = enabled;
            _delta = delta;
            _mappings = mappings;
            _mappings.ConstrainToSegmentPair(_segment1.StrRep, _segment2.StrRep);
            _mappings.ImportEnabled = false;
            _mappings.Mappings.CollectionChanged += MappingsChanged;
            _toggleMappingCommand = new RelayCommand(ToggleMapping);
        }