using System;
using System.Globalization;
using InABox.Core;
using Xamarin.Forms;

namespace InABox.Mobile
{
    public class DateTimeToColorConverter: UtilityConverter<DateTime,Color>
    {
        
        public Color EmptyColor { get; set; }
        public Color FilledColor { get; set; }

        protected override Color Convert(DateTime value)
        {
            return value.IsEmpty() ? EmptyColor : FilledColor;
        }
        
    }
}