mirror of
https://github.com/hawkeye-stan/msfs-popout-panel-manager.git
synced 2024-11-22 05:40:11 +00:00
28 lines
816 B
C#
28 lines
816 B
C#
using System;
|
|
using System.Windows.Data;
|
|
|
|
namespace MSFSPopoutPanelManager.MainApp
|
|
{
|
|
public class InverseBooleanOrConverter : IMultiValueConverter
|
|
{
|
|
public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
|
|
{
|
|
if (values.LongLength > 0)
|
|
{
|
|
foreach (var value in values)
|
|
{
|
|
if (value is bool && (bool)value)
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
|
|
{
|
|
return new object[] { false };
|
|
}
|
|
}
|
|
}
|