source: trunk/CrypPlugins/WorkspaceManager/View/Converter/ScaleToPercentageConverter.cs @ 1807

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

-Logging added
-Progress bar added
-DataPresentation now updating
-PluginContainerView complete rebuilt
-Several images added

File size: 644 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows.Data;
6
7namespace WorkspaceManager.View.Converter
8{
9    class ScaleToPercentageConverter : IValueConverter
10    {
11
12        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
13        {
14            return Math.Round((double)value * 100, 0);
15        }
16
17        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
18        {
19            throw new NotImplementedException();
20        }
21    }
22}
Note: See TracBrowser for help on using the repository browser.