This commit is contained in:
@@ -657,7 +657,9 @@ namespace Volian.Controls.Library
|
||||
private void tvTran_BeforeExpand(object sender, TreeViewCancelEventArgs e)
|
||||
{
|
||||
VETreeNode tn = ((VETreeNode)e.Node);
|
||||
tn.LoadChildren(false);
|
||||
// true fixes empty expand, but allows for transitions 'way down' in RNO tree. HVJ & PAL wanted to
|
||||
// allow this (12/2/09)
|
||||
tn.LoadChildren(true);
|
||||
}
|
||||
private void cbTranSects_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
@@ -703,6 +705,25 @@ namespace Volian.Controls.Library
|
||||
private void tvTran_AfterSelect(object sender, TreeViewEventArgs e)
|
||||
{
|
||||
if (_InitializingTrans) return;
|
||||
// check if node is a true end-point, i.e. not a 'part' node. If part node, don't
|
||||
// allow selection.
|
||||
bool allowSave = false;
|
||||
VETreeNode vt = tvTran.SelectedNode as VETreeNode;
|
||||
if (vt != null)
|
||||
{
|
||||
ItemInfo ii = vt.VEObject as ItemInfo;
|
||||
if (ii != null) allowSave = true;
|
||||
}
|
||||
if (!_DoingRange)
|
||||
{
|
||||
btnTranSave.Enabled = allowSave;
|
||||
return;
|
||||
}
|
||||
if (!allowSave)
|
||||
{
|
||||
MessageBox.Show("Must select a valid step, not a grouping part such as 'RNO', 'Steps', etc");
|
||||
return;
|
||||
}
|
||||
if (_DoingRange)
|
||||
{
|
||||
if (_RangeNode1 == null || (_RangeNode1 != null && _RangeNode2 != null))
|
||||
|
Reference in New Issue
Block a user