mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 23:50:18 -04:00
Removed add-ons ordering to avoid Culture bugs - for now
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
using System.Collections.ObjectModel;
|
using System;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
@@ -26,16 +27,13 @@ namespace ModernKeePass.ViewModels
|
|||||||
|
|
||||||
public DonateVm(ILicenseService license)
|
public DonateVm(ILicenseService license)
|
||||||
{
|
{
|
||||||
var usNfi = new NumberFormatInfo
|
// TODO: find a nice way to order products
|
||||||
{
|
|
||||||
NegativeSign = "-",
|
|
||||||
NumberDecimalSeparator = ".",
|
|
||||||
NumberGroupSeparator = ",",
|
|
||||||
CurrencySymbol = "$"
|
|
||||||
};
|
|
||||||
_license = license;
|
_license = license;
|
||||||
Donations = new ObservableCollection<ProductListing>(
|
Donations = new ObservableCollection<ProductListing>(
|
||||||
_license.Products.Values.OrderBy(p => decimal.Parse(p.FormattedPrice, NumberStyles.Currency, usNfi)));
|
_license.Products.Values
|
||||||
|
/*.OrderBy(p => decimal.Parse(p.FormattedPrice.Replace('\u00A0', ' '), NumberStyles.Currency,
|
||||||
|
CultureInfo.CurrentCulture.NumberFormat))*/
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<int> Purchase()
|
public async Task<int> Purchase()
|
||||||
|
Reference in New Issue
Block a user