complete ranking page

This commit is contained in:
tsanie committed 2022-03-09 16:21:03 +08:00
1 parent b5c531d128
commit abffc0627e
5 files changed
+213 -53

No files matched your search

+6
View File
@@ -111,10 +111,16 @@ namespace Billing.UI
public class TimeConverter : IValueConverter
{
public bool IncludeDate { get; set; }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value is DateTime time)
{
if (IncludeDate)
{
return time.ToString("MM-dd HH:mm");
}
return time.ToString("HH:mm");
}
return string.Empty;