mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
refactor(PercentToDouble): remove unused PercentToDouble converter
This commit is contained in:
parent
5ce9cffcee
commit
9fceb821ea
1 changed files with 0 additions and 41 deletions
|
@ -1,41 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Globalization;
|
|
||||||
using System.Windows.Data;
|
|
||||||
|
|
||||||
namespace SourceGit.Converters {
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Convert percent to double.
|
|
||||||
/// </summary>
|
|
||||||
public class PercentToDouble : IValueConverter {
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Percentage.
|
|
||||||
/// </summary>
|
|
||||||
public double Percent { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Implement IValueConverter.Convert
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="value"></param>
|
|
||||||
/// <param name="targetType"></param>
|
|
||||||
/// <param name="parameter"></param>
|
|
||||||
/// <param name="culture"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) {
|
|
||||||
return (double)value * Percent;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Implement IValueConverter.ConvertBack
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="value"></param>
|
|
||||||
/// <param name="targetType"></param>
|
|
||||||
/// <param name="parameter"></param>
|
|
||||||
/// <param name="culture"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) {
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue