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:
@@ -53,6 +53,7 @@ namespace Volian.Controls.Library
|
||||
get { return _MyProcedureInfo; }
|
||||
set
|
||||
{
|
||||
if (DesignMode) return; // B2019-043 need to check if we are just saving changes to the user interface
|
||||
if (value is ProcedureInfo && _MyProcedureInfo is ProcedureInfo && value.ItemID == _MyProcedureInfo.ItemID)
|
||||
return;
|
||||
_MyProcedureInfo = value;
|
||||
@@ -73,6 +74,7 @@ namespace Volian.Controls.Library
|
||||
get { return _MyItemInfo; }
|
||||
set
|
||||
{
|
||||
if (DesignMode) return; // B2019-043 need to check if we are just saving changes to the user interface
|
||||
if (value is ItemInfo && _MyItemInfo is ItemInfo && value.ItemID == _MyItemInfo.ItemID)
|
||||
return;
|
||||
_MyItemInfo = value;
|
||||
@@ -94,7 +96,8 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
get { return _MyEditItem; }
|
||||
set
|
||||
{
|
||||
{
|
||||
if (DesignMode) return; // B2019-043 need to check if we are just saving changes to the user interface
|
||||
_MyEditItem = value;
|
||||
if (value != null)
|
||||
MyItemInfo = value.MyItemInfo;
|
||||
|
Reference in New Issue
Block a user