| 12345678910111213141516171819202122232425262728 | 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<Role>((value as List<Role>).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();        }    }}
 |