20240801_FJEQ_upperpc/FujianEarthquake_seabed_now/FujianEarthquake/Common/BtnConvert.cs
XuMin e0c45efc7d 新增页面:
1 编写参数设置,保护设置,开关设置的界面
2024-09-12 18:55:41 +08:00

41 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
namespace FujianEarthquake.Common
{
public class BtnConvert : IMultiValueConverter
{
public static object ConvertObject;
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
{
string result = "";
for (int i = 0; i < values.Length; i++)
{
if (values[i] == null)
break;
if (i != values.Length - 1)
{
result += values[i].ToString() + ",";
}
else
{
result += values[i].ToString();
}
}
return result;
}
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}