first test-flight version

This commit is contained in:
2022-03-03 15:10:36 +08:00
parent 9929eee056
commit 25191127f3
116 changed files with 1124 additions and 173 deletions

View File

@ -1,7 +1,6 @@
using Billing.Languages;
using Billing.Models;
using Billing.Themes;
using Billing.Views;
using System;
using System.Collections.Generic;
using System.Globalization;
@ -26,9 +25,26 @@ namespace Billing.UI
}
}
public class NegativeConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value is bool b)
{
return !b;
}
return value;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
public class MoneyConverter : IValueConverter
{
public bool MarkVisible { get; set; } = true;
public bool MarkVisible { get; set; }
public bool Absolute { get; set; }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
@ -89,14 +105,13 @@ namespace Billing.UI
}
}
public class UIBillConverter : IValueConverter
public class TimeConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value is UIBill bill)
if (value is DateTime time)
{
var time = bill.DateCreation.ToString("HH:mm");
return $"{time} ({bill.Wallet})";
return time.ToString("HH:mm");
}
return string.Empty;
}
@ -152,6 +167,7 @@ namespace Billing.UI
{ "appstore", "\uf370" },
{ "apple-pay", "\uf416" },
{ "btc", "\uf15a" },
{ "buffer", "\uf837" },
{ "jcb", "\uf24b" },
{ "master-card", "\uf1f1" },
{ "visa", "\uf1f0" },