using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Media; namespace Tango.FSE.Common.Graphs { public static class GraphHelper { public enum GraphColor { White, Red, Yellow, Green, Orange } public static Color GetGraphColor(GraphColor graphColor) { return (Color)Application.Current.Resources[$"FSE_RealTimeGraph_{graphColor.ToString()}"]; } public static Brush GetGraphBrush(GraphColor graphColor) { return new SolidColorBrush(GetGraphColor(graphColor)); } public static Color GetGraphStrokeColor() { return (Color)Application.Current.Resources["FSE_RealTimeGraph_ForegroundColor"]; } } }