using MECF.Framework.Common.Account.Extends; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Data; namespace FurnaceUI.Converter { public class RolesConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { if (value == null) return string.Empty; var roles =new List((value as List).ToArray()); roles.RemoveAll(x => x.RoleName == "Logoff"); return roles; } public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { throw new NotImplementedException(); } } }