ScreenToGif/Util/Converters/IntToDelayString.cs
(完整代码) 793Busing System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;
namespace ScreenToGif.Util.Converters
{
/// <summary>
/// Converts a Integer to a String formated as Delay (Example: 1 ms)
/// </summary>
public class IntToDelayString : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
var intValue = value as int?;
if (!intValue.HasValue)
return DependencyProperty.UnsetValue;
return String.Format("{0} ms", intValue);
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
