From d0222b28e860fbc84ffdfeabca3469a6a37c7920 Mon Sep 17 00:00:00 2001 From: dmnisson Date: Mon, 19 Nov 2018 17:02:40 -0800 Subject: [PATCH] #14, close #18: added appropriate display names and constraints on Leg model --- DriverTracker/DriverTracker.db | Bin 131072 -> 131072 bytes DriverTracker/Models/Leg.cs | 36 ++++++++++++++++++ .../Models/LessThanOrEqualToAttribute.cs | 24 ++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 DriverTracker/Models/LessThanOrEqualToAttribute.cs diff --git a/DriverTracker/DriverTracker.db b/DriverTracker/DriverTracker.db index e17322ad523bc20cb94fff67d387ed33c7c93a19..62070544dc885ec1e7670789c9745883e384b607 100644 GIT binary patch delta 59 zcmZo@;Am*zm>|ulI8nx#QE_9!vV67|4E*_gFE$Gb+~MPEWMSfE;B+)Lwlx+OW}N)J PuB17uetT9u|ulFj2;tQDI}kvV69e4E*_gFE Convert.ToDecimal(model.GetType().GetProperty(_dependentProperty).GetValue(model)) + ? new ValidationResult(this.ErrorMessage) + : ValidationResult.Success; + } + } +}