aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Graphics/FSE/Modules/settings.png
blob: a9d0314d1f258e64acf736574e7d4d049dd1444d (plain)
ofshex dumpascii
0000 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 00 40 00 00 00 40 08 04 00 00 00 00 60 b9 .PNG........IHDR...@...@......`.
0020 55 00 00 00 04 67 41 4d 41 00 00 b1 8f 0b fc 61 05 00 00 00 20 63 48 52 4d 00 00 7a 26 00 00 80 U....gAMA......a.....cHRM..z&...
0040 84 00 00 fa 00 00 00 80 e8 00 00 75 30 00 00 ea 60 00 00 3a 98 00 00 17 70 9c ba 51 3c 00 00 00 ...........u0...`..:....p..Q<...
0060 02 62 4b 47 44 00 00 aa 8d 23 32 00 00 00 09 70 48 59 73 00 00 0e c4 00 00 0e c4 01 95 2b 0e 1b .bKGD....#2....pHYs..........+..
0080 00 00 00 07 74 49 4d 45 07 e4 02 17 14 20 0a 98 71 09 62 00 00 08 f4 49 44 41 54 68 de c5 99 79 ....tIME........q.b....IDATh...y
00a0 70 56 d5 19 c6 7f 37 1b 5b 10 d9 02 84 5d 59 3a 20 b6 96 1a 8b 30 22 4e 2b 9a 29 75 65 09 a5 55 pV....7.[....]Y:.....0"N+.)ue..U
00c0 aa e0 82 55 e9 54 41 45 a6 a3 b5 53 45 c4 0a b8 60 8b 52 46 ad a2 e3 48 5d 60 10 b4 c3 e2 40 4b ...U.TAE...SE...`.RF...H]`....@K
00e0 a7 65 c4 88 1a d9 77 8c 04 08 b2 ff fa c7 77 73 73 bf ef cb 97 10 c0 f6 c9 1f f9 ce b9 ef 3d cf .e....w.......wss.............=.
0100 73 de b3 bc ef 39 17 ea 80 6b ac c2 b0 ba 6c 4f 05 59 75 d0 b7 e6 bc a8 30 e8 ff 20 80 4b 09 be s....9...k....lO.Yu.....0....K..
0120 5d 01 a9 3d 6e 95 54 6a e9 6b c6 31 c8 98 60 03 5b 9c 69 fa 87 ac 74 92 0d c1 2c af 77 81 47 4d ]..=n.Tj.k.1..`.[.i...t...,.w.GM
0140 c5 66 1f b7 13 80 df 73 a9 9b 3d f7 74 39 ab 1d 8c 0f f1 20 00 65 3c cd 2f e9 0d 40 05 ab d9 c6 .f.....s..=.t9.......e<./..@....
0160 4e 1a d1 81 ae f4 01 e0 08 7f 46 6
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Globalization;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace Tango.DispenserAnalyzer.UI.Analysis
{
    public class AnalyzerResultBase : IAnalyzerResult
    {
        public AnalyzerResultValue Result { get; set; }
        public List<AnalysisPlotValue> PlotValues { get; set; }

        public List<AnalyzerResultProperty> Properties
        {
            get
            {
                List<AnalyzerResultProperty> props = new List<AnalyzerResultProperty>();
                if (this.GetType() == typeof(AnalyzerResultBase))
                    return props;

                foreach (var prop in this.GetType().GetProperties(BindingFlags.Instance | BindingFlags.Public | BindingFlags.DeclaredOnly).OrderByAlphaNumeric(x => x.Name))
                {
                    AnalyzerResultProperty aProp = new AnalyzerResultProperty();

                    if (prop.GetCustomAttribute<DescriptionAttribute>() != null)
                    {
                        aProp.Name = prop.GetCustomAttribute<DescriptionAttribute>().Description;
                    }
                    else
                    {
                        aProp.Name = prop.Name;
                    }
                    object val = prop.GetValue(this);
                    aProp.Value = (val is double) ? ((double)val).ToString("F") : val.ToString();

                    props.Add(aProp);
                }

                return props;
            }
        }

        public AnalyzerResultBase()
        {
            PlotValues = new List<AnalysisPlotValue>();
            Result = AnalyzerResultValue.Undetermined;
        }
    }
}