This commit is contained in:
2011-04-26 12:00:22 +00:00
parent 99bd83fd14
commit 7ea8e04e41
3 changed files with 8 additions and 8 deletions

View File

@@ -678,9 +678,16 @@ namespace Volian.Controls.Library
{
_CurrentProcedure = _CurrentItemProcedure;
cbTranProcsFillIn(_CurrentProcedure);
ItemInfo tmpitm = _CurItemFrom;
ItemInfo secitm = null;
while (tmpitm.MyContent.Type != 0) // find current section
{
if (tmpitm.MyContent.Type >= 10000 && tmpitm.MyContent.Type < 20000) secitm = tmpitm;
tmpitm = tmpitm.MyParent;
}
int sectstartid = FindSectionStart(_CurrentProcedure);
IList chldrn = _CurrentProcedure.GetChildren();
if (chldrn != null && chldrn.Count > 0) cbTranSectsFillIn((ItemInfo)chldrn[0], sectstartid);
if (chldrn != null && chldrn.Count > 0) cbTranSectsFillIn((ItemInfo)chldrn[0], secitm==null?sectstartid:secitm.ItemID); //sectstartid);
}
_TranFmtIndx = listBoxTranFmt.SelectedIndex;
groupPanelTranFmt.Style.BackColor = (_CurTrans == null && _TranFmtIndx == 0) ? Color.Yellow : Color.Orange;