From 3a8adbb7e14dab462446cc273f7787c3d02f7c68 Mon Sep 17 00:00:00 2001 From: Tim Young Date: Tue, 31 Oct 2017 09:01:51 -0500 Subject: [PATCH] Work if no language file exists --- EduNetworkBuilder/TranslationWindow.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/EduNetworkBuilder/TranslationWindow.cs b/EduNetworkBuilder/TranslationWindow.cs index d8136c7..2d9f66e 100644 --- a/EduNetworkBuilder/TranslationWindow.cs +++ b/EduNetworkBuilder/TranslationWindow.cs @@ -341,6 +341,11 @@ namespace EduNetworkBuilder void Load() { + if(! File.Exists(filename)) + { + //The file does not exist yet. Nothing to load. Exit gracefully + return; + } Items.Clear(); ResXResourceReader InResx = new ResXResourceReader(filename); InResx.UseResXDataNodes = true;