Initial commit

This commit is contained in:
alphafetus committed 2023-10-09 11:11:48 -04:00
commit 8c7e1b917f
180 files changed
+7747

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
using PcgsInvUi.Models;
using ReactiveUI;
namespace PcgsInvUi.ViewModels;
public class CoinListViewModel : ViewModelBase
{
public ObservableCollection<Coin> CoinCollection { get; set; }
private float _totalValue;
public float TotalValue
{
get => _totalValue;
set => this.RaiseAndSetIfChanged(ref _totalValue, value);
}
public Coin? SelectedCoin { get; set; }
public CoinListViewModel(IEnumerable<Coin> items)
{
CoinCollection = new ObservableCollection<Coin>(items);
TotalValue = 0;
}
}