wenn projekt null ist, soll man kein
Objekt hinzufügen dürfen
This commit is contained in:
@@ -147,6 +147,11 @@ namespace SanSystem
|
||||
|
||||
private void btn_add_Click(object sender, EventArgs e)
|
||||
{
|
||||
if(Datenbank.Instance.loadedProjekt == null)
|
||||
{
|
||||
MessageBox.Show("Es wurde kein Projekt geladen");
|
||||
return;
|
||||
}
|
||||
KlassenBIB.Inspektionsobjekt inspektionsobjekt = new KlassenBIB.Inspektionsobjekt();
|
||||
inspektionsobjekt.Projektnummer = Global.Instance.ProjektNummer;
|
||||
Datenbank.Instance.loadedProjekt.Objekte.Add(inspektionsobjekt);
|
||||
|
||||
Reference in New Issue
Block a user