summaryrefslogtreecommitdiff
path: root/Decompiler/Gestor.Application.Converters/EqualToCollapsedConverter.cs
blob: d146d341dbdcd65f6458fdc69a00c418e2a22bfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;

namespace Gestor.Application.Converters;

public class EqualToCollapsedConverter : IMultiValueConverter
{
	public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
	{
		return (object)(Visibility)((values[0] is long num && values[1] is long num2) ? ((num == num2) ? 2 : 0) : 0);
	}

	public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
	{
		return null;
	}
}