This commit is contained in:
Kathy Ruffing 2011-03-07 13:15:35 +00:00
parent 03a7198e62
commit c1112468d2

View File

@ -163,10 +163,7 @@ namespace Volian.Controls.Library
{
ItemInfo next = (cbxReverse.Checked) ? MyEditItem.MyItemInfo.SearchPrev : MyEditItem.MyItemInfo.SearchNext;
// TODO: Searchable text for grids/tables will be in MyContent.Text - but is not there now.
// uncomment next line and remove following line (and it's associated method code) when it is available.
//while (!next.IsSection && !next.MyContent.Text.ToUpper().Contains(cmboFindText.Text.ToUpper()))
while (!next.IsSection && !FindNextText(next))
while (!next.IsSection && !next.MyContent.Text.ToUpper().Contains(cmboFindText.Text.ToUpper()))
next = (cbxReverse.Checked) ? next.SearchPrev : next.SearchNext;
if (next.IsSection)
{
@ -179,9 +176,11 @@ namespace Volian.Controls.Library
}
return;
}
MyEditItem.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.OpenItem(next);
if (cbxReverse.Checked)
MyEditItem.PositionToEnd();
if (next.IsTable && !cbxReverse.Checked) MyEditItem.PositionToStart();
}
if (MyEditItem.MyStepRTB != null && !MyEditItem.MyStepRTB.Visible)
{