using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Resources;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;

namespace Converters
{
    public class IntToPreheatConverter : IValueConverter
    {
        public ResourceManager Language;

       // string strLanguage = "VSView.View.Languages." + Properties.Settings.Default.Language;



        public object Convert(object value, Type targetType,
           object parameter, CultureInfo culture)
        {
            //Language = new ResourceManager(strLanguage, typeof(MainWindow).Assembly);

            //switch (Properties.Settings.Default.Language)
            //{
            //    case "Czech": return  value.ToString() + " " + Language.GetString("Converter0");
            //    case "Enghlish": return value.ToString() + " " + Language.GetString("Converter1");

            //    default:
            //        return "";                    
            //}
            return "";

        }

        public object ConvertBack(object value, Type targetType,
            object parameter, CultureInfo culture)
        {
            //Language = new ResourceManager(strLanguage, typeof(MainWindow).Assembly);

            //if (value.ToString().Contains("15"))
            //{
            //    return 15;
            //}
            //else if (value.ToString().Contains("9"))
            //{
            //    return 9;
            //}
            //else 
            //{
            //    return 5;
            //}

            return "";
        }
    }
}
