private void SetModel(object value) { _activatedSettingItem = value as IActivatedSetting; if (_activatedSettingItem == null) { return; } ActivationAddress = _activatedSettingItem.ActivationAddress.ToString(); IsSettingEnabled = _activatedSettingItem.IsSettingEnabled; }
public ActivatedConfigurationSettingViewModel(ITypesContainer container) { _activatedSettingItem = container.Resolve <IFragmentSetting>(ConfigurationKeys.Settings.ACTIVATION_CONFIGURATION_SETTING) as IActivatedSetting; ActivationAddress = "0"; }