Permalink
Browse files

deleted unneeded converter - doing animations through code

  • Loading branch information...
1 parent ccedffe commit b5c727130f15f71050a3cf094e56b39710ea9b3c @dougrathbone committed Jun 4, 2012
Showing with 0 additions and 33 deletions.
  1. +0 −32 OpenAttractor/Converters/Multiplier.cs
  2. +0 −1 OpenAttractor/OpenAttractor.csproj
View
32 OpenAttractor/Converters/Multiplier.cs
@@ -1,32 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace OpenAttractor.Converters
-{
- public class Multiplier
- {
- public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- var dblValue = 1.0;
- if (value is double)
- dblValue = (double)value;
- else if (!(value is string) || !double.TryParse((string)value, out dblValue))
- return null;
-
- var dblParam = 1.0;
- if (parameter is double)
- dblParam = (double)parameter;
- else if (!(parameter is string) || !double.TryParse((string)parameter, out dblParam))
- return null;
-
- return dblValue * dblParam;
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-}
View
1 OpenAttractor/OpenAttractor.csproj
@@ -53,7 +53,6 @@
<SubType>Designer</SubType>
</ApplicationDefinition>
<Compile Include="AppSettings.cs" />
- <Compile Include="Converters\Multiplier.cs" />
<Compile Include="ImageViewer.xaml.cs">
<DependentUpon>ImageViewer.xaml</DependentUpon>
</Compile>

0 comments on commit b5c7271

Please sign in to comment.