source: trunk/CrypPlugins/WorkspaceManager/View/Converter/ConnectorToColorConverter.cs @ 1892

Last change on this file since 1892 was 1717, checked in by matkovic, 11 years ago

-added loading from Model
-added several images
-added Connector data presentation
-several style changes

File size: 794 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows.Data;
6using WorkspaceManager.View.Container;
7using WorkspaceManager.Model;
8using System.Windows.Media;
9
10namespace WorkspaceManager.View.Converter
11{
12    class ConnectorToColorConverter : IValueConverter
13    {
14        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
15        {
16            Type type = value as Type;
17            return new SolidColorBrush(ColorHelper.GetColor(type));
18        }
19
20        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
21        {
22            throw new NotImplementedException();
23        }
24    }
25}
Note: See TracBrowser for help on using the repository browser.