aboutsummaryrefslogtreecommitdiffstats
path: root/Software/DB/Scripts
ModeNameSize
-rw-r--r--Select With Local Datetime.sql175logstatsplain
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"];
        }
    }
}