diff options
| author | Roy <Roy.mail.net@gmail.com> | 2023-06-27 13:16:21 +0300 |
|---|---|---|
| committer | Roy <Roy.mail.net@gmail.com> | 2023-06-27 13:16:21 +0300 |
| commit | c267a46b14ebb3babe8a0378bd403346ca182354 (patch) | |
| tree | a7d69a29c00c9b2976168bf42d7ad228e1f91680 /Software/Visual_Studio/PPC/Tango.PPC.UI/Graphs/GraphHelper.cs | |
| parent | 0f150c98978332377ee6aad3eac8c8a08553a8e7 (diff) | |
| parent | a5de87ea9863c6e7053e09ed1c2eabf58285af48 (diff) | |
| download | Tango-c267a46b14ebb3babe8a0378bd403346ca182354.tar.gz Tango-c267a46b14ebb3babe8a0378bd403346ca182354.zip | |
Merge branch 'eureka' of https://twinetfs.visualstudio.com/Tango/_git/Tango into eureka
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Graphs/GraphHelper.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/Graphs/GraphHelper.cs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Graphs/GraphHelper.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Graphs/GraphHelper.cs new file mode 100644 index 000000000..d06ed042a --- /dev/null +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Graphs/GraphHelper.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Windows; +using System.Windows.Media; + +namespace Tango.PPC.UI.Graphs +{ + public static class GraphHelper + { + public enum GraphColor + { + White, + Red, + Yellow, + Green, + Orange + } + + public static Color GetGraphColor(GraphColor graphColor) + { + return (Color)Application.Current.Resources[$"Tango_RealTimeGraph_{graphColor.ToString()}"]; + } + + public static Brush GetGraphBrush(GraphColor graphColor) + { + return new SolidColorBrush(GetGraphColor(graphColor)); + } + + public static Color GetGraphStrokeColor() + { + return (Color)Application.Current.Resources["Tango_RealTimeGraph_ForegroundColor"]; + } + } +} |
