public AudienceModel(Audience audienceEnum) { Name = audienceEnum.GetDescription(); Value = (int)audienceEnum; Enum = audienceEnum; IsSelected = false; PropertyChanged += _audienceModelPropertyChanged; }
/// <summary> /// Initializes a new instance of the <see cref="AudienceModel"/> class. /// </summary> /// <param name="audienceEnum">The <see cref="Audience"/> enum.</param> public AudienceModel(Audience audienceEnum) { Name = audienceEnum.GetDescription(); Value = (int)audienceEnum; Enum = audienceEnum; //IsSelected = (audienceEnum == Audience.AllAudiences) ? true : false; IsSelected = (audienceEnum == Audience.Professionals) ? true : false; PropertyChanged += _audienceModelPropertyChanged; }