Userfehler eingaben abgefangen

Beim erstellen von neue Projekte wird auf usereingaben geachtet
This commit is contained in:
HuskyTeufel
2022-03-25 11:36:56 +01:00
parent 097274303b
commit dea733183e
6 changed files with 44 additions and 10 deletions

View File

@@ -22,8 +22,10 @@ namespace SanSystem
this.inspektionsobjekts = inspektionsobjekts;
targetDatum = datum;
BuildBericht(SearchForWaranties());
List<Inspektionsobjekt> objekte = SearchForWaranties();
if (objekte.Count < 1)
return;
BuildBericht(objekte);
}
static string ConvertToDecimals(double input, uint kommazahl = 2)
{
@@ -38,6 +40,7 @@ namespace SanSystem
double gesamtLiner = 0;
double gesamtHarz = 0;
if (list.Count < 1) return;
foreach (Inspektionsobjekt objekt in list)
{
DataRow dr = inliner.NewRow();