Esempio n. 1
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            SdkState state = (SdkState)value;

            if (state == SdkState.removed)
            {
                return(false);
            }
            return(true);
        }
Esempio n. 2
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            SdkState state = (SdkState)value;

            if (state == SdkState.unchanged)
            {
                return(Brushes.Black);
            }
            if (state == SdkState.removed)
            {
                return(Brushes.Gray);
            }
            return(Brushes.Blue);
        }
Esempio n. 3
0
 public SdkViewModel(string path, IEnumerable <TargetResult> targets, SdkState sdkState = SdkState.unchanged)
 {
     Path     = path;
     SdkState = sdkState;
     Targets  = targets?.Select(target => new TargetViewModel(target.GetDisplayName(), this));
 }