complete ranking page

This commit is contained in:
2022-03-09 16:21:03 +08:00
parent b5c531d128
commit abffc0627e
5 changed files with 213 additions and 53 deletions

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;