From abd63695955df01a54536531c5a74c71ab2061f3 Mon Sep 17 00:00:00 2001 From: Basimodo Date: Wed, 23 Jun 2021 12:43:05 +0200 Subject: [PATCH] Corrected names of private fields. Starting underscore was missing. --- Gremlin/GremlinUI/ViewModels/QuoteVM.cs | 84 ++++++++++++------------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/Gremlin/GremlinUI/ViewModels/QuoteVM.cs b/Gremlin/GremlinUI/ViewModels/QuoteVM.cs index 71a9c7b..26d4cbf 100644 --- a/Gremlin/GremlinUI/ViewModels/QuoteVM.cs +++ b/Gremlin/GremlinUI/ViewModels/QuoteVM.cs @@ -8,66 +8,66 @@ namespace Gremlin.GremlinUI.ViewModels { internal class QuoteVM : BaseVM { - private string quoteType = "ein Analysegerät"; - private string quotePath; - private List lineItemsVM; - private ContactVM recipient; - private ContactVM salesRep; - private string quoteNumber; - private int warranty = 12; - private int validity = 60; - private decimal totalListprice; - private decimal averageDiscount; - private decimal totalNet; - private float vAT = 19f; - private bool? brutto = true; - private bool? singlePrices = true; - private bool? brochures = false; - private bool? dataSheets = false; - private bool? mailTemplate = false; - private bool quoteContains3PP = false; - private bool quoteContainsRB = false; - private bool? showDiscounts = true; + private string _quoteType = "ein Analysegerät"; + private string _quotePath; + private List _lineItemsVM; + private ContactVM _recipient; + private ContactVM _salesRep; + private string _quoteNumber; + private int _warranty = 12; + private int _validity = 60; + private decimal _totalListprice; + private decimal _averageDiscount; + private decimal _totalNet; + private float _vAT = 19f; + private bool? _brutto = true; + private bool? _singlePrices = true; + private bool? _brochures = false; + private bool? _dataSheets = false; + private bool? _mailTemplate = false; + private bool _quoteContains3PP = false; + private bool _quoteContainsRB = false; + private bool? _showDiscounts = true; public string QuoteType { - get => quoteType; + get => _quoteType; internal set { - quoteType = value; + _quoteType = value; OnPropertyChanged("QuoteType"); } } public string QuotePath { - get => quotePath; + get => _quotePath; internal set { - quotePath = value; + _quotePath = value; OnPropertyChanged("QuotePath"); } } - public List LineItemsVM { get => lineItemsVM; private set => lineItemsVM = value; } - public ContactVM Recipient { get => recipient; internal set => recipient = value; } - public ContactVM SalesRep { get => salesRep; private set => salesRep = value; } - public string QuoteNumber { get => quoteNumber; internal set => quoteNumber = value; } - public int Warranty { get => warranty; internal set => warranty = value; } - public int Validity { get => validity; internal set => validity = value; } - public decimal TotalListprice { get => totalListprice; private set => totalListprice = value; } - public decimal AverageDiscount { get => averageDiscount; private set => averageDiscount = value; } - public decimal TotalNet { get => totalNet; private set => totalNet = value; } - public float VAT { get => vAT; private set => vAT = value; } - public bool? Brutto { get => brutto; internal set => brutto = value; } - public bool? SinglePrices { get => singlePrices; internal set => singlePrices = value; } - public bool? Brochures { get => brochures; internal set => brochures = value; } - public bool? DataSheets { get => dataSheets; internal set => dataSheets = value; } - public bool? MailTemplate { get => mailTemplate; internal set => mailTemplate = value; } - public bool QuoteContains3PP { get => quoteContains3PP; private set => quoteContains3PP = value; } - public bool QuoteContainsRB { get => quoteContainsRB; private set => quoteContainsRB = value; } - public bool? ShowDiscounts { get => showDiscounts; internal set => showDiscounts = value; } + public List LineItemsVM { get => _lineItemsVM; private set => _lineItemsVM = value; } + public ContactVM Recipient { get => _recipient; internal set => _recipient = value; } + public ContactVM SalesRep { get => _salesRep; private set => _salesRep = value; } + public string QuoteNumber { get => _quoteNumber; internal set => _quoteNumber = value; } + public int Warranty { get => _warranty; internal set => _warranty = value; } + public int Validity { get => _validity; internal set => _validity = value; } + public decimal TotalListprice { get => _totalListprice; private set => _totalListprice = value; } + public decimal AverageDiscount { get => _averageDiscount; private set => _averageDiscount = value; } + public decimal TotalNet { get => _totalNet; private set => _totalNet = value; } + public float VAT { get => _vAT; private set => _vAT = value; } + public bool? Brutto { get => _brutto; internal set => _brutto = value; } + public bool? SinglePrices { get => _singlePrices; internal set => _singlePrices = value; } + public bool? Brochures { get => _brochures; internal set => _brochures = value; } + public bool? DataSheets { get => _dataSheets; internal set => _dataSheets = value; } + public bool? MailTemplate { get => _mailTemplate; internal set => _mailTemplate = value; } + public bool QuoteContains3PP { get => _quoteContains3PP; private set => _quoteContains3PP = value; } + public bool QuoteContainsRB { get => _quoteContainsRB; private set => _quoteContainsRB = value; } + public bool? ShowDiscounts { get => _showDiscounts; internal set => _showDiscounts = value; } internal QuoteVM(ContactVM salesRep) {