public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { SdkState state = (SdkState)value; if (state == SdkState.removed) { return(false); } return(true); }
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); }
public SdkViewModel(string path, IEnumerable <TargetResult> targets, SdkState sdkState = SdkState.unchanged) { Path = path; SdkState = sdkState; Targets = targets?.Select(target => new TargetViewModel(target.GetDisplayName(), this)); }