- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Windows.Data;
using Indusoft.PolypropylenPowder.Info;
//СУКИ ИНДАСОФТОВСКИЕ
namespace Indusoft.PolypropylenPowder.Converters
{
public class BeginXxConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value == null) return null;
var s = value as IEnumerable<object>;
var res = 45.0;
var flag = false;
if (s != null)
{
foreach (var a in s)
{
var b = a as DataTemplate5Item;
if (b != null)
{
if (b.IsActive5)
{
flag = true;
break;
}
}
res += 91;
}
}
if (!flag)
{
return 0;
}
return res;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}
Follow us!