Mark van Renswoude
197aef531a
Reimplemented automatic refresh of the serial port list Improved serial device connection retry Moved plugins to their own subfolder for better separation, added metadata on the entry assembly to load Added logging settings Added Run at startup setting Many visual enhancements
19 lines
558 B
C#
19 lines
558 B
C#
using System;
|
|
using System.Windows.Data;
|
|
|
|
namespace MassiveKnob.Helpers
|
|
{
|
|
public class ComparisonConverter : IValueConverter
|
|
{
|
|
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
|
|
{
|
|
return value?.Equals(parameter);
|
|
}
|
|
|
|
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
|
|
{
|
|
return value?.Equals(true) == true ? parameter : Binding.DoNothing;
|
|
}
|
|
}
|
|
}
|