示例#1
0
 public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
 {
     FlagsExtended setting = (FlagsExtended)Enum.Parse(typeof(FlagsExtended), parameter.ToString());
     flags ^= setting;
     return flags;
 }
示例#2
0
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            flags = (FlagsExtended)value;

            return ((FlagsExtended)Enum.Parse(typeof(FlagsExtended), parameter.ToString()) | flags) == flags;
        }