using Admin.Core.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
namespace Admin.Core.Wpf.ConvertTo
{
public class MultiFaultAppConverter : IMultiValueConverter
{
///
/// 对象转换
///
/// 所绑定的源的值
/// 目标的类型
/// 绑定时所传递的参数
/// <系统语言等信息
///
public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
//if (values != null && values.Count() ==8)
//{
// //EEquipmentMaintenance bsm = new EEquipmentMaintenance() {
// // Name = values[0].ToString(),
// // No = values[1].ToString(),
// // EquipmentType = values[2].ToString(),
// // Address = values[3].ToString(),
// // TimeOfOccurrence = values[4].ToString(),
// // RepairApplicant = values[5].ToString(),
// // Phone = values[6].ToString(),
// // Description = values[7].ToString(),
// //};
// return bsm;
//}
return null;
}
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
{
throw new NotImplementedException();
}
}
}