32 lines
871 B
C#
32 lines
871 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Globalization;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Data;
|
|
using System.Windows;
|
|
using HandyControl.Tools;
|
|
|
|
namespace 智能仓储WCS管理系统
|
|
{
|
|
/// <summary>
|
|
/// 权限转换器
|
|
/// </summary>
|
|
public class AuthVisConverter : IValueConverter
|
|
{
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
if (DesignerHelper.IsInDesignMode)
|
|
return Visibility.Visible;
|
|
|
|
return AuthConverter.IsAuth(parameter) ? Visibility.Visible : Visibility.Collapsed;
|
|
}
|
|
|
|
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|