aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/Images/FindinFiles_16x.png
blob: 5b47a34cebe127b9d5f325dd79f0bebe2effb449 (plain)
ofshex dumpascii
0000 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 00 10 00 00 00 10 08 06 00 00 00 1f f3 ff .PNG........IHDR................
0020 61 00 00 00 01 73 52 47 42 00 ae ce 1c e9 00 00 00 04 67 41 4d 41 00 00 b1 8f 0b fc 61 05 00 00 a....sRGB.........gAMA......a...
0040 00 09 70 48 59 73 00 00 0e c3 00 00 0e c3 01 c7 6f a8 64 00 00 00 18 74 45 58 74 53 6f 66 74 77 ..pHYs..........o.d....tEXtSoftw
0060 61 72 65 00 70 61 69 6e 74 2e 6e 65 74 20 34 2e 31 2e 36 fd 4e 09 e8 00 00 01 15 49 44 41 54 38 are.paint.net.4.1.6.N......IDAT8
0080 4f a5 92 cd 0a 01 51 14 c7 e7 0d 78 03 6f e0 11 bc 84 b5 b2 b3 b7 c4 ca d2 23 48 89 92 2c 64 a1 O.....Q....x.o...........#H..,d.
00a0 7c 2d 6c 6c 86 8d 8d cc 24 8d 12 26 11 53 6a b6 c7 fd 5f 73 35 d7 cc 30 38 f5 ef de ce c7 ef 9e |-ll....$..&.Sj..._s5..08.......
00c0 73 66 14 db b6 d3 44 a4 7c 52 a0 21 b8 19 97 68 dd cb f9 0a 31 e4 b0 87 a2 4e 89 6c 08 22 11 a7 sf....D.|R.!...h....1....N.l."..
00e0 9f 00 38 1b 2a bb ca 7e 74 1e 0a 80 62 77 47 90 31 2a b2 90 d3 15 2e ef 00 7e 12 f9 7f 03 42 8d ..8.*..~t...bwG.1*.......~....B.
0100 e0 27 77 be
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using Tango.BL;
using Tango.BL.Enumerations;

namespace Tango.MachineStudio.Developer.Converters
{
    public class LiquidVolumesToLubricantLiquidVolume : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value != null)
            {
                IEnumerable<LiquidVolume> liquid_volumes = value as IEnumerable<LiquidVolume>;
                return liquid_volumes.SingleOrDefault(x => x.IdsPack.IdsPackFormula.Code == IdsPackFormulas.Lubricant.ToInt32());
            }
            else
            {
                return null;
            }
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}