| 123456789101112131415161718192021222324252627282930313233343536 | using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Data;using Venus_Core;namespace Venus_Themes.Converters{    public class ToBoolMultiValueConverter7 : IMultiValueConverter    {        public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)        {            if (values == null) return false;            if (((bool)values[0] == true && (bool)values[1] == true )||((bool)values[1] == true && (bool)values[2] == true && (bool)values[3] == true))            {                return true;            }            for (int i = 4; i < values.Length; i++)            {                if ((bool)values[i] == true)                {                    return true;                }            }            return false;        }        public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)        {            throw new NotImplementedException();        }    }}
 |