| 12345678910111213141516171819202122232425262728293031323334353637383940 | 
							- using System;
 
- using System.Collections.Generic;
 
- using System.Linq;
 
- using System.Text;
 
- using System.Threading.Tasks;
 
- using System.Windows;
 
- using System.Windows.Data;
 
- using System.Windows.Media;
 
- namespace CyberX8_Themes.Converters
 
- {
 
-     public class StringToVisibility : IValueConverter
 
-     {
 
-         public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
 
-         {
 
-             if (value == null) return Visibility.Collapsed;
 
-             switch (value.ToString())
 
-             {
 
-                 case "PUFA":
 
-                     return Visibility.Visible;
 
-                 case "PUFB":
 
-                     return Visibility.Hidden;
 
-                 default:
 
-                     return Visibility.Hidden;
 
-             }
 
-         }
 
-         public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
 
-         {
 
-             if (!(value is bool))
 
-                 return false;
 
-             return !(bool)value;
 
-         }
 
-     }
 
- }
 
 
  |