B2019-043 Added checks for being in design mode during initialization of variables
B2019-043 Added checks for being in design mode during initialization of variables. Also needed to remove the parameter from the constructor
This commit is contained in:
@@ -51,6 +51,7 @@ namespace Volian.Controls.Library
|
||||
get { return _SearchResults; }
|
||||
set
|
||||
{
|
||||
if (DesignMode) return; // B2019-043 need to check if we are just saving changes to the user interface
|
||||
_SearchResults = value;
|
||||
if (value != null) // Don't select an item from the list when it is updated
|
||||
_SearchResults.ListChanged += new ListChangedEventHandler(_SearchResults_ListChanged);
|
||||
@@ -82,6 +83,7 @@ namespace Volian.Controls.Library
|
||||
get { return _MyDocVersion; }
|
||||
set
|
||||
{
|
||||
if (DesignMode) return; // B2019-043 need to check if we are just saving changes to the user interface
|
||||
_MyDocVersion = value;
|
||||
if (_MyDocVersion != null)
|
||||
{
|
||||
@@ -110,6 +112,7 @@ namespace Volian.Controls.Library
|
||||
get { return _MyROFSTLookup; }
|
||||
set
|
||||
{
|
||||
if (DesignMode) return; // B2019-043 need to check if we are just saving changes to the user interface
|
||||
bool beforeIsNotNull = _MyROFSTLookup != null;
|
||||
bool afterIsNotNull = value != null;
|
||||
//if (!Visible) return; // don't reset anything if the form is invisible.
|
||||
|
Reference in New Issue
Block a user