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:
@@ -26,7 +26,7 @@ namespace Volian.Controls.Library
|
||||
get { return _CurTrans; }
|
||||
set
|
||||
{
|
||||
if (!Visible) return;
|
||||
if (DesignMode || !Visible) return; // B2019-043 need to check if we are just saving changes to the user interface
|
||||
if (value == null) // Insert a transition
|
||||
{
|
||||
if (MyRTB == null) return;
|
||||
@@ -106,7 +106,7 @@ namespace Volian.Controls.Library
|
||||
get { return _MyRTB; }
|
||||
set
|
||||
{
|
||||
if (!Visible) return;
|
||||
if (DesignMode || !Visible) return; // B2019-043 need to check if we are just saving changes to the user interface
|
||||
// add or remove events for
|
||||
if (_MyRTB != null)
|
||||
_MyRTB.LinkChanged -= new StepRTBLinkEvent(_MyRTB_LinkChanged);
|
||||
@@ -532,7 +532,7 @@ namespace Volian.Controls.Library
|
||||
tvTran.ItemHeight++;
|
||||
tvTran.ItemHeight--;
|
||||
}
|
||||
private int savSecStart;
|
||||
//private int savSecStart;
|
||||
private void cbTranSectsFillIn(ItemInfo secitm, int secstart, bool clear)
|
||||
{
|
||||
if (clear) cbTranSects.Items.Clear();
|
||||
|
Reference in New Issue
Block a user