source: trunk/CrypPlugins/WorkspaceManager/View/Converter/ConnectorBindingConverter.cs @ 1551

Last change on this file since 1551 was 1471, checked in by matkovic, 12 years ago

-Added View in Project

File size: 992 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows.Data;
6using System.Windows;
7using System.Globalization;
8
9namespace WorkspaceManager.View.Converter
10{
11    public class ConnectorBindingConverter : IMultiValueConverter
12    {
13        #region IMultiValueConverter Members
14
15        public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
16        {
17            double X = System.Convert.ToDouble(values[0]);
18            double Y = System.Convert.ToDouble(values[1]);
19            double Height = System.Convert.ToDouble(values[2]);
20            double Width = System.Convert.ToDouble(values[3]);
21            return new Point(X + Width, Y + Height / 2);
22        }
23
24        public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
25        {
26            throw new NotImplementedException();
27        }
28
29        #endregion
30    }
31}
Note: See TracBrowser for help on using the repository browser.