aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Graphs/GraphHelper.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy.mail.net@gmail.com>2023-07-16 12:09:56 +0300
committerRoy Ben-Shabat <Roy.mail.net@gmail.com>2023-07-16 12:09:56 +0300
commitac39b49638cb1b2f3602f51c7f5a1cde7e0df673 (patch)
treed3c6cdf0fa913cc07cbfc8c9cf8c065d1bce0dae /Software/Visual_Studio/PPC/Tango.PPC.UI/Graphs/GraphHelper.cs
parent48fe4a21077ae4ec4b78e1b3fd76934a20b58dda (diff)
parenta353bf2a5fae2eb8d81c342a5c5dce0e3de2b086 (diff)
downloadTango-ac39b49638cb1b2f3602f51c7f5a1cde7e0df673.tar.gz
Tango-ac39b49638cb1b2f3602f51c7f5a1cde7e0df673.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.cs36
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"];
+ }
+ }
+}