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; 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. while (!next.IsSection && !next.MyContent.Text.ToUpper().Contains(cmboFindText.Text.ToUpper()))
// 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))
next = (cbxReverse.Checked) ? next.SearchPrev : next.SearchNext; next = (cbxReverse.Checked) ? next.SearchPrev : next.SearchNext;
if (next.IsSection) if (next.IsSection)
{ {
@ -179,9 +176,11 @@ namespace Volian.Controls.Library
} }
return; return;
} }
MyEditItem.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.OpenItem(next); MyEditItem.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.OpenItem(next);
if (cbxReverse.Checked) if (cbxReverse.Checked)
MyEditItem.PositionToEnd(); MyEditItem.PositionToEnd();
if (next.IsTable && !cbxReverse.Checked) MyEditItem.PositionToStart();
} }
if (MyEditItem.MyStepRTB != null && !MyEditItem.MyStepRTB.Visible) if (MyEditItem.MyStepRTB != null && !MyEditItem.MyStepRTB.Visible)
{ {