public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { entity.Status.Project status = (entity.Status.Project)value; if (status == entity.Status.Project.Management_Approved) { return(Brushes.PaleGreen); } else if (status == entity.Status.Project.Approved) { return(Brushes.LimeGreen); } else if (status == entity.Status.Project.InProcess) { return(Brushes.Gold); } else if (status == entity.Status.Project.Executed) { return(Brushes.Purple); } else if (status == entity.Status.Project.Rejected) { return(Brushes.Crimson); } else { //Pending return(Brushes.WhiteSmoke); } }
public object Convert(object value, Type targetType, object ConverterParameter, System.Globalization.CultureInfo culture) { if (value != null) { entity.Status.Project status = (entity.Status.Project)value; if (status != entity.Status.Project.Pending) { return(false); } else { return(true); } } else { return(false); } }
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { if (value != null) { entity.Status.Project status = (entity.Status.Project)value; if (status == entity.Status.Project.Management_Approved) { return(true); } else { //Pending return(false); } } else { return(false); } }