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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user