Es werden nun mehrere Sanierungen hinzugefügt

This commit is contained in:
Husky
2018-07-01 13:13:20 +02:00
parent c43f27eea0
commit 33f39b1ac7
16 changed files with 1155 additions and 550 deletions

View File

@@ -34,6 +34,18 @@ namespace SanSystem
Inspektionsobjekt tmp = (Inspektionsobjekt)dgvw.DataBoundItem;
if (tmp == null) continue;
dgvw.DefaultCellStyle.BackColor = Color.White;
int anzahlSan = tmp.Sanierung.Count;
int anzahlfertig = 0;
int counter = 0;
foreach(Sanierung san in tmp.Sanierung)
{
Sanieren _san = (san as Sanieren);
if (_san.Fertig) anzahlfertig++;
counter++;
}
if (counter != 0 && (anzahlfertig == anzahlSan))
dgvw.DefaultCellStyle.BackColor = Color.Green;
if (
(tmp.BisPunkt== null || tmp.BisPunkt.Equals(""))
|| (tmp.VonPunkt == null || tmp.VonPunkt.Equals(""))