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:
2019-03-22 15:19:19 +00:00
parent 94f18653eb
commit b29176f636
11 changed files with 112 additions and 76 deletions

View File

@@ -34,7 +34,7 @@ namespace Volian.Controls.Library
{
get { return _MyROFSTLookup; }
set
{
{
_MyROFSTLookup = value;
LoadTree();
}
@@ -81,8 +81,8 @@ namespace Volian.Controls.Library
get { return _MyRTB; }
set
{
int origRoDbId = -1;
if (!Visible) return;
int origRoDbId = -1;
if (_MyRTB != null)
{
_MyRTB.LinkChanged -= new StepRTBLinkEvent(MyRTB_LinkChanged);
@@ -197,10 +197,13 @@ namespace Volian.Controls.Library
#endregion
#region Constructors
public DisplayRO(DisplayTabControl tc)// Added DisplayTabControl to the constructor to assure that it is set
public DisplayRO() // B2019-043 jsj 2019Mar21 - Removed the DisplayTabControl parameter from the constructor
{
InitializeComponent();
TabControl = tc;// B2017-074 Added DisplayTabControl to the constructor to assure that it is set
// jsj 2019Mar21 - This is initialized in frmVEPROMS.Designer.cs and in frmVEPROMS.cs in the constructor after the call to InitializeComponent()
// When we had passed in the DisplayTabControl as a parameter, "DisplayRO(DisplayTabControl tc)", the frmVEPROMS designer would not include a NEW call for DisplayRO
// in the "Windows Form Designer generated code" Region and thus cause the design view to no longer appear.
//TabControl = tc;// B2017-074 Added DisplayTabControl to the constructor to assure that it is set
_ProgressBar = null;
panelRoValue.BackColor = Color.Cornsilk;
panelValue.BackColor = Color.Cornsilk;