move Converter to Converters folder

This commit is contained in:
Nguyen Dinh Thuan
2024-09-21 06:44:26 +07:00
parent 20b5bb8cd1
commit c30007c15f
4 changed files with 7 additions and 4 deletions
+31
View File
@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using System.Windows.Data;
namespace SafeBagDE70.Converters
{
public class LastItemIndexConverter : IMultiValueConverter
{
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
{
if (values.Length >= 1 && values[0] is string Name)
{
if (Name == "Tổng")
{
return true;
}
}
return false;
}
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}