﻿using System;
using System.Globalization;
using Xamarin.Forms;

namespace pdt.Converters.Messages
{
    public class CadMessagePriorityToBgColour : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {

            Color ret = Color.Transparent;

            //if (value is UrgentMessage mess)
            //{
            //    if (mess.Priority == 1)
            //    {
            //        ret = Color.FromRgb(255, 135, 135);
            //    }
            //}

            return ret;
        }

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