using LogoForceTestApp.Modules.MainModule.Enums;
using System;
using System.Globalization;
using System.Windows.Data;

namespace LogoForceTestApp
{
    internal class JugetoStringConvet : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {

            if (value is RunResultState juge)
            {
                var content = juge switch
                {
                    RunResultState.NG => "NG",
                    RunResultState.OK => "OK",
                    RunResultState.NOTDEFINED => "Wait",
                    _ => throw new NotImplementedException()
                };
                return content;
            }
            return "Wait";
        }

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