Esempio n. 1
0
 public ClashExceptionCreated(DateTime startDate, DateTime?endDate, ClashExceptionType fromType, ClashExceptionType toType,
                              IncludeOrExclude includeOrExclude, string fromValue, string toValue, List <TimeAndDow> timeAndDows, string externalRef)
 {
     StartDate        = startDate;
     EndDate          = endDate;
     FromType         = fromType;
     ToType           = toType;
     IncludeOrExclude = includeOrExclude;
     FromValue        = fromValue;
     ToValue          = toValue;
     TimeAndDows      = timeAndDows;
     ExternalRef      = externalRef;
 }
Esempio n. 2
0
        public object Convert(object value, Type targeType, object parameter, CultureInfo culture)
        {
            if (!(value is IncludeOrExclude))
            {
                return(Resources.UnknownValue);
            }

            IncludeOrExclude what = (IncludeOrExclude)value;

            if (what == IncludeOrExclude.Include)
            {
                return(Resources.DoesNotContain);
            }
            else
            {
                return(Resources.Contains);
            }
        }