Work if no language file exists

This commit is contained in:
Tim Young 2017-10-31 09:01:51 -05:00
parent d2f3423a5a
commit 3a8adbb7e1

View File

@ -341,6 +341,11 @@ namespace EduNetworkBuilder
void Load() void Load()
{ {
if(! File.Exists(filename))
{
//The file does not exist yet. Nothing to load. Exit gracefully
return;
}
Items.Clear(); Items.Clear();
ResXResourceReader InResx = new ResXResourceReader(filename); ResXResourceReader InResx = new ResXResourceReader(filename);
InResx.UseResXDataNodes = true; InResx.UseResXDataNodes = true;