From db742557a5adccc1432c93aaa5a1d481396c3615 Mon Sep 17 00:00:00 2001 From: HuskyTeufel Date: Thu, 11 Mar 2021 15:49:44 +0100 Subject: [PATCH] Import Befahrungsdaten Fix Wenn das Projekt noch nicht Initialisiert ist wird ein Textbox ausgegben --- SanSystem/frmMain.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SanSystem/frmMain.cs b/SanSystem/frmMain.cs index 283481c..7d04e82 100644 --- a/SanSystem/frmMain.cs +++ b/SanSystem/frmMain.cs @@ -184,6 +184,11 @@ namespace SanSystem { OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.Filter = "XML Daten | *.xml"; + if(Datenbank.Instance.loadedProjekt == null) + { + MessageBox.Show("Diese Projekt ist nicht Initialisiert"); + return; + } if (openFileDialog.ShowDialog() == DialogResult.OK) { string path = openFileDialog.FileName;