Reformatted and cleaned up code across whole project.
This commit is contained in:
1 parent
42a7871ed4
commit
99cb9268dd
25 files changed
+272
-319
No files matched your search
+41
-49
@@ -3,55 +3,52 @@ using ReactiveUI;
|
||||
|
||||
namespace PcgsInvUi.Models;
|
||||
|
||||
public class Coin : ReactiveObject
|
||||
{
|
||||
public string PCGSNo
|
||||
{
|
||||
public class Coin : ReactiveObject {
|
||||
public string PCGSNo {
|
||||
get => _pcgsNo;
|
||||
set => this.RaiseAndSetIfChanged(ref _pcgsNo, value);
|
||||
}
|
||||
|
||||
private string _pcgsNo;
|
||||
|
||||
public string Name
|
||||
{
|
||||
public string Name {
|
||||
get => _name;
|
||||
set => this.RaiseAndSetIfChanged(ref _name, value);
|
||||
}
|
||||
|
||||
private string _name;
|
||||
|
||||
public int Year
|
||||
{
|
||||
public int Year {
|
||||
get => _year;
|
||||
set => this.RaiseAndSetIfChanged(ref _year, value);
|
||||
}
|
||||
|
||||
private int _year;
|
||||
|
||||
public string Denomination
|
||||
{
|
||||
public string Denomination {
|
||||
get => _denomination;
|
||||
set => this.RaiseAndSetIfChanged(ref _denomination, value);
|
||||
}
|
||||
|
||||
private string _denomination;
|
||||
|
||||
public string MintMark
|
||||
{
|
||||
public string MintMark {
|
||||
get => _mintMark;
|
||||
set => this.RaiseAndSetIfChanged(ref _mintMark, value);
|
||||
}
|
||||
|
||||
private string _mintMark;
|
||||
|
||||
public string Grade
|
||||
{
|
||||
public string Grade {
|
||||
get => _grade;
|
||||
set => this.RaiseAndSetIfChanged(ref _grade, value);
|
||||
}
|
||||
|
||||
private string _grade;
|
||||
|
||||
public double PriceGuideValue
|
||||
{
|
||||
public double PriceGuideValue {
|
||||
get => _priceGuideValue;
|
||||
set
|
||||
{
|
||||
set {
|
||||
TotalPrice = value * Quantity;
|
||||
this.RaiseAndSetIfChanged(ref _priceGuideValue, value);
|
||||
}
|
||||
@@ -59,67 +56,65 @@ public class Coin : ReactiveObject
|
||||
|
||||
private double _priceGuideValue;
|
||||
|
||||
public string CoinFactsLink
|
||||
{
|
||||
public string CoinFactsLink {
|
||||
get => _coinFactsLink;
|
||||
set => this.RaiseAndSetIfChanged(ref _coinFactsLink, value);
|
||||
}
|
||||
|
||||
private string _coinFactsLink;
|
||||
|
||||
public string MajorVariety
|
||||
{
|
||||
public string MajorVariety {
|
||||
get => _majorVariety;
|
||||
set => this.RaiseAndSetIfChanged(ref _majorVariety, value);
|
||||
}
|
||||
|
||||
private string _majorVariety;
|
||||
|
||||
public string MinorVariety
|
||||
{
|
||||
public string MinorVariety {
|
||||
get => _minorVariety;
|
||||
set => this.RaiseAndSetIfChanged(ref _minorVariety, value);
|
||||
}
|
||||
|
||||
private string _minorVariety;
|
||||
|
||||
public string DieVariety
|
||||
{
|
||||
public string DieVariety {
|
||||
get => _dieVariety;
|
||||
set => this.RaiseAndSetIfChanged(ref _dieVariety, value);
|
||||
}
|
||||
|
||||
private string _dieVariety;
|
||||
|
||||
public string SeriesName
|
||||
{
|
||||
public string SeriesName {
|
||||
get => _seriesName;
|
||||
set => this.RaiseAndSetIfChanged(ref _seriesName, value);
|
||||
}
|
||||
|
||||
private string _seriesName;
|
||||
|
||||
public string Category
|
||||
{
|
||||
public string Category {
|
||||
get => _category;
|
||||
set => this.RaiseAndSetIfChanged(ref _category, value);
|
||||
}
|
||||
|
||||
private string _category;
|
||||
|
||||
public string Designation
|
||||
{
|
||||
public string Designation {
|
||||
get => _designation;
|
||||
set => this.RaiseAndSetIfChanged(ref _designation, value);
|
||||
}
|
||||
|
||||
private string _designation;
|
||||
|
||||
public int CertificateNumber
|
||||
{
|
||||
public int CertificateNumber {
|
||||
get => _certificateNumber;
|
||||
set => this.RaiseAndSetIfChanged(ref _certificateNumber, value);
|
||||
}
|
||||
|
||||
private int _certificateNumber;
|
||||
|
||||
public int Quantity
|
||||
{
|
||||
public int Quantity {
|
||||
get => _quantity;
|
||||
set
|
||||
{
|
||||
set {
|
||||
TotalPrice = value * PriceGuideValue;
|
||||
this.RaiseAndSetIfChanged(ref _quantity, value);
|
||||
}
|
||||
@@ -127,29 +122,28 @@ public class Coin : ReactiveObject
|
||||
|
||||
private int _quantity;
|
||||
|
||||
public double TotalPrice
|
||||
{
|
||||
public double TotalPrice {
|
||||
get => _totalPrice;
|
||||
set => this.RaiseAndSetIfChanged(ref _totalPrice, value);
|
||||
}
|
||||
|
||||
private double _totalPrice;
|
||||
|
||||
public double PaidFor
|
||||
{
|
||||
public double PaidFor {
|
||||
get => _paidFor;
|
||||
set => this.RaiseAndSetIfChanged(ref _paidFor, value);
|
||||
}
|
||||
|
||||
private double _paidFor;
|
||||
|
||||
public string Notes
|
||||
{
|
||||
public string Notes {
|
||||
get => _notes;
|
||||
set => this.RaiseAndSetIfChanged(ref _notes, value);
|
||||
}
|
||||
|
||||
private string _notes;
|
||||
|
||||
public Coin()
|
||||
{
|
||||
|
||||
public Coin() {
|
||||
PCGSNo = "";
|
||||
Name = "";
|
||||
Year = 0;
|
||||
@@ -168,7 +162,5 @@ public class Coin : ReactiveObject
|
||||
Quantity = 0;
|
||||
PaidFor = 0;
|
||||
Notes = "";
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user