source: trunk/CrypPlugins/P2PEditor/Converters/StringEmptyToVisibilityConverter.cs @ 1727

Last change on this file since 1727 was 1727, checked in by Paul Lelgemann, 11 years ago

+ P2PEditor can display the status of jobs, if available; Participating displays overlay while loading workspace data
+ KeySearcher can upload status for P2PEditor display

File size: 624 bytes
Line 
1using System;
2using System.Globalization;
3using System.Windows;
4using System.Windows.Data;
5
6namespace Cryptool.P2PEditor.Converters
7{
8    class StringEmptyToVisibilityConverter : IValueConverter
9    {
10        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
11        {
12            return string.IsNullOrEmpty((string) value) ? Visibility.Visible : Visibility.Hidden;
13        }
14
15        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
16        {
17            throw new NotImplementedException();
18        }
19    }
20}
Note: See TracBrowser for help on using the repository browser.