logic to support transition to a non-numbered step
commented out test coding to save for now.
This commit is contained in:
parent
c0d0c3d08e
commit
b7bea9a5f1
@ -475,6 +475,12 @@ namespace Volian.Controls.Library
|
||||
//FormatInfo formatInfo = _MyItemInfo.ActiveFormat;
|
||||
using (_MyItem = _MyItemInfo.Get())
|
||||
{
|
||||
if (_MyItemInfo.NewTransToUnNumberedItem)
|
||||
{
|
||||
ItemAnnotation ia = _MyItem.ItemAnnotations.Add(AnnotationType.GetByName("Verification Required"));
|
||||
ia.SearchText = "Transition to Un-Numbered Step";
|
||||
_MyItemInfo.NewTransToUnNumberedItem = false;
|
||||
}
|
||||
// check for different text, i.e. text from this itm doesn't match
|
||||
// original text, a change occurred in database, but not from this user.
|
||||
if (OriginalText != EditText)
|
||||
|
@ -991,6 +991,16 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
// Can I build the text right now?
|
||||
trantxt = TransitionText.GetResolvedText(MyRTB.MyItemInfo, listBoxTranFmt.SelectedIndex,toItem,rangeItem ?? toItem);
|
||||
//if (MyRTB.NewTransToUnNumberedItem =(trantxt == string.Empty))
|
||||
//{
|
||||
// trantxt = toItem.Ordinal.ToString();
|
||||
// //using (Item itm = fromInfo.Get())
|
||||
// //{
|
||||
// // ItemAnnotation ia = itm.ItemAnnotations.Add(AnnotationType.GetByName("Verifcation Required"));
|
||||
// // ia.SearchText = "Transition to Un-Numbered Step";
|
||||
// // itm.Save();
|
||||
// //}
|
||||
//}
|
||||
int ss = MyRTB.SelectionStart;// Remember where the link is being added
|
||||
int sl = MyRTB.SelectionLength;
|
||||
MyRTB.OnReturnToEditor(this, new EventArgs());
|
||||
|
Loading…
x
Reference in New Issue
Block a user