This commit is contained in:
parent
b8344c8ca1
commit
ecff8237a2
@ -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))
|
||||
|
@ -26,7 +26,7 @@ namespace VEPROMS.CSLA.Library
|
||||
case "ReferencedObject":
|
||||
_MyParsedLinkType = ParsedLinkType.ReferencedObject;
|
||||
string[] subs = m.Groups[3].Value.Split(" ".ToCharArray());
|
||||
if (subs[0] == "<NewID>")
|
||||
if (subs[0].IndexOf("CROUSGID")>-1)
|
||||
_MyRoUsageInfo = null;
|
||||
else
|
||||
{
|
||||
@ -37,7 +37,8 @@ namespace VEPROMS.CSLA.Library
|
||||
case "Transition":
|
||||
case "TransitionRange":
|
||||
_MyParsedLinkType = (ParsedLinkType)Enum.Parse(_MyParsedLinkType.GetType(), m.Groups[2].Value);
|
||||
if (m.Groups[3].Value.Split(" ".ToCharArray())[1] == "<NewID>")
|
||||
string[] subst = m.Groups[3].Value.Split(" ".ToCharArray());
|
||||
if (subst[0].IndexOf("CTID") > -1)
|
||||
_MyTransitionInfo = null;
|
||||
else
|
||||
{
|
||||
|
@ -168,6 +168,12 @@ namespace Volian.Controls.Library
|
||||
_SelectedRtfSB.Remove(0, _SelectedRtfSB.Length);
|
||||
|
||||
DisplayText vlntxt = new DisplayText(_MyItemInfo, EpMode, VwMode, !edit, FieldToEdit);
|
||||
if (_origDisplayText != null && vlntxt.StartText == _origDisplayText.StartText)
|
||||
{
|
||||
ReadOnly = !(EpMode == E_EditPrintMode.Edit && VwMode == E_ViewMode.Edit);
|
||||
if (!ReadOnly && !edit) ReadOnly = true;
|
||||
return;
|
||||
}
|
||||
_origDisplayText = vlntxt;
|
||||
#if(DEBUG)
|
||||
// Use Times New Roman for Debugging
|
||||
|
Loading…
x
Reference in New Issue
Block a user