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:
@@ -17,6 +17,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
|
||||
_MyItemInfo = value;
|
||||
_MainStepSection = null;
|
||||
FillInControls();
|
||||
@@ -27,7 +28,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_MainStepSection == null)
|
||||
if (!DesignMode && _MainStepSection == null) // B2019-043 need to check if we are just saving changes to the user interface
|
||||
{
|
||||
foreach (SectionInfo si in MyItemInfo.MyProcedure.Sections)
|
||||
{
|
||||
@@ -38,8 +39,8 @@ namespace Volian.Controls.Library
|
||||
return _MainStepSection;
|
||||
}
|
||||
}
|
||||
private ItemInfo _firstStep;
|
||||
private ItemInfo _lastStep;
|
||||
//private ItemInfo _firstStep;
|
||||
//private ItemInfo _lastStep;
|
||||
private bool _Initializing;
|
||||
|
||||
public DisplayFoldoutMaint()
|
||||
|
Reference in New Issue
Block a user