ObjectManager/UI/Common/Classes/Common_Classes_Button.cs

(完整代码) 959B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;

namespace ObjectManager.UI.Common.Classes
{
    class Common_Classes_Button : IValueConverter
    {
        /// <summary>
        /// 将Statu转换为bool?
        /// </summary>
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (value is double)
            {
                if (System.Convert.ToDouble(value) <= 40)
                    return 3;
                else
                    return 6;
            }


            return 3;
        }

        /// <summary>
        /// 将bool?转换为Statu
        /// </summary>
        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return string.Empty;
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。