Ignore:
Timestamp:
Jun 20, 2010, 10:27:22 PM (11 years ago)
Author:
Paul Lelgemann
Message:

o Work on the distributed KeySearcher presentation

Location:
trunk/CrypPlugins/KeySearcher/Converter
Files:
1 added
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/KeySearcher/Converter/TrueToVisibleOrCollapsedConverter.cs

    r1677 r1682  
    44using System.Windows.Data;
    55
    6 namespace Cryptool.P2PEditor.Converters
     6namespace KeySearcherConverter
    77{
    88    [ValueConversion(typeof (bool), typeof (Visibility))]
    9     public class ConnectivityToVisibilityConverter : IValueConverter
     9    public class TrueToVisibleOrCollapsedConverter : IValueConverter
    1010    {
    1111        #region IValueConverter Members
     
    1515        {
    1616            if (targetType != typeof (Visibility))
    17                 throw new InvalidOperationException("The target must be a Visibility");
     17                throw new InvalidOperationException("The target must be of Visibility");
    1818
    1919            if ((bool) value)
    2020            {
    21                 return Visibility.Hidden;
    22             } else
    23             {
    2421                return Visibility.Visible;
    2522            }
     23
     24            return Visibility.Collapsed;
    2625        }
    2726
Note: See TracChangeset for help on using the changeset viewer.