B2017-215 /DB Switch was not working properly

This commit is contained in:
Rich 2017-09-21 15:51:41 +00:00
parent fbc4b42ff1
commit 6ef5988005

View File

@ -109,9 +109,11 @@ namespace Volian.Controls.Library
get { return _MyROFSTLookup; }
set
{
bool beforeIsNotNull = _MyROFSTLookup != null;
bool afterIsNotNull = value != null;
//if (!Visible) return; // don't reset anything if the form is invisible.
_MyROFSTLookup = value; // define the tree nodes based on this rofst
LoadROComboTree();
if(beforeIsNotNull || afterIsNotNull)LoadROComboTree();// B2017-215 Added logic so that database is not accessed during initialization.
}
}
private bool _LoadingList = false;