temp: broken push to laptop
This commit is contained in:
1 parent
0a0ea86d25
commit
3a819ce180
32 files changed
+503
-573
No files matched your search
@@ -1,23 +1,20 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using PcgsInvUi.Models;
|
||||
using ReactiveUI;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
|
||||
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);
|
||||
public partial class CoinListViewModel : ViewModelBase {
|
||||
public CoinListViewModel(IEnumerable<PcgsCoin> items) {
|
||||
CoinCollection = new ObservableCollection<PcgsCoin>(items);
|
||||
TotalValue = 0;
|
||||
}
|
||||
|
||||
public ObservableCollection<PcgsCoin> CoinCollection { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
public partial float TotalValue { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
public partial PcgsCoin? SelectedCoin { get; set; }
|
||||
}
|
||||
Reference in new issue
Block a user