aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Models/FactorTarget.cs
blob: a9bc38f4c0d37a8eac88059ab28b88342240f90b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.BL.Enumerations;

namespace Tango.MachineStudio.ThreadExtensions.Models
{
    public static class FactorTarget
    {
        public static Dictionary<FactorColors, double> FACTOR100 = new Dictionary<FactorColors, double>() {
            { FactorColors.CYAN, 51.64}, {FactorColors.MAGENTA, 46.77}, { FactorColors.YELLOW, 90.3}, {FactorColors.BLACK, 31.61}};

        public static Dictionary<FactorColors, double> FACTOR200 = new Dictionary<FactorColors, double>() {
            { FactorColors.CYAN, 42.26}, {FactorColors.MAGENTA, 42.1}, { FactorColors.YELLOW, 98.86}, {FactorColors.BLACK, 24}};

        public static double GetFactor100(FactorColors color)
        {
            double result;

            if (FACTOR100.TryGetValue(color, out result))
            {
                return result;
            }
            return 0.0;
        }
        public static double GetFactor200(FactorColors color)
        {
            double result;

            if (FACTOR200.TryGetValue(color, out result))
            {
                return result;
            }
            return 0.0;
        }
    }
}