public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { ILanguage lf = OptionsAccess.Language; //Je nach Status der Flag "Connected" (927) oder "Not Connected"(926) ausgeben. return(ConverterHelper.CheckFlags((ConnectionsAccess.ConnectionState)value, parameter, true) ? lf.getLanguageString(927) : lf.getLanguageString(926)); }
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { if (targetType != typeof(bool)) { throw new InvalidOperationException("The target must be a ConnectionState"); } return(!ConverterHelper.CheckFlags((ConnectionsAccess.ConnectionState)value, parameter, true)); }
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { return(ConverterHelper.CheckFlags((ConnectionsAccess.ConnectionState)value, parameter, true)?Brushes.Green:Brushes.Red); }