| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 | 
							- using FurnaceUI.Views.Editors;
 
- using System;
 
- using System.Collections.Generic;
 
- using System.Linq;
 
- using System.Text;
 
- using System.Threading.Tasks;
 
- using System.Windows;
 
- using System.Windows.Data;
 
- namespace FurnaceUI.Converter
 
- {
 
-     public class LayoutRecipeReplacementConverter : IValueConverter
 
-     {
 
-         private static Dictionary<LayoutReplacement, string> keyValuePairs = new Dictionary<LayoutReplacement, string>();
 
-         private static void CreateDict()
 
-         {
 
-             if (keyValuePairs.Count == 0)
 
-             {
 
-                 keyValuePairs.Add(LayoutReplacement.Upper, "All Product Top Stuffing");
 
-                 keyValuePairs.Add(LayoutReplacement.Center, "All Product Central Stuffing");
 
-                 keyValuePairs.Add(LayoutReplacement.Lower, "AlI Bottom Stuffing of a Product");
 
-                 keyValuePairs.Add(LayoutReplacement.UpperProduct, "Inside Top Stuffing of a Carrier");
 
-                 keyValuePairs.Add(LayoutReplacement.Fixed, "Fixation in a Carrier");
 
-             }
 
-         }
 
-         public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
 
-         {
 
-             CreateDict();
 
-             if (value == null)
 
-                 return keyValuePairs[LayoutReplacement.Upper];
 
-             if (value is LayoutReplacement)
 
-             {
 
-                 return keyValuePairs[(LayoutReplacement)value];
 
-             }
 
-             return keyValuePairs[LayoutReplacement.Upper];
 
-         }
 
-         public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
 
-         {
 
-             return parameter.ToString();
 
-         }
 
-     }
 
-    
 
- }
 
 
  |