public static DiagnosticData AddGuage(this Response response, InsightStatus status, double percentFilled, string displayValue, string label, GuageSize size = GuageSize.Medium, string description = "") { Guage guage = new Guage(status, percentFilled, displayValue, label, size, description); return(AddGuages(response, new List <Guage>() { guage }, GuageRenderDirection.Vertical)); }
/// <summary> /// Create a new Guage instance. Does not have a default constructor. /// </summary> public Guage(InsightStatus status, double percentFilled, string displayValue, string label, GuageSize size = GuageSize.Medium, string description = "") { this.Status = status; this.PercentFilled = percentFilled; this.DisplayValue = displayValue; this.Label = label; this.Size = size; this.Description = description; }