public static bool IsVisible(Trend trend) { return trend.Evaluation != TrendEvaluation.None; }
public static string GetArrowColor(Trend trend) { switch (trend.RenderingDisposition) { case TrendEvaluation.UpGood: case TrendEvaluation.DownGood: return greenArrowColor; // good is green case TrendEvaluation.UpNoOpinion: case TrendEvaluation.DownNoOpinion: case TrendEvaluation.NoChangeNoOpinion: return greyArrowColor; // no opinion is gray case TrendEvaluation.DownBad: case TrendEvaluation.UpBad: return redArrowColor; // bad is red } return string.Empty; }
public static string Tooltip(Trend trend) { switch (trend.Evaluation) { case TrendEvaluation.UpGood: case TrendEvaluation.DownGood: case TrendEvaluation.UpNoOpinion: return upTooltip; case TrendEvaluation.NoChangeNoOpinion: return noChangeTooltip; case TrendEvaluation.DownBad: case TrendEvaluation.UpBad: case TrendEvaluation.DownNoOpinion: return downTooltip; } return string.Empty; }
public static string GetArrowDirection(Trend trend) { switch (trend.RenderingDisposition) { case TrendEvaluation.UpGood: case TrendEvaluation.UpBad: case TrendEvaluation.UpNoOpinion: return upArrowIcon; case TrendEvaluation.DownBad: case TrendEvaluation.DownGood: case TrendEvaluation.DownNoOpinion: return downArrowIcon; case TrendEvaluation.NoChangeNoOpinion: return noChangeIcon; } return string.Empty; }