Esempio n. 1
0
        public CharacteristicViewModel(Characteristic characteristic, CharacteristicsService characteristicsService)
        {
            DeferValidationUntilFirstSaveCall = false;

            _modelBackup            = characteristic.CreateBackup();
            _characteristicsService = characteristicsService;

            Characteristic  = characteristic;
            RedirectTargets = characteristicsService.GetRedirectTargets(characteristic);
            CharacteristicsRedirectingToThis = characteristicsService.GetRedirectSources(characteristic);
            AllowRedirect = CharacteristicsRedirectingToThis.Count == 0;
        }