This commit is contained in:
parent
85f6d57d57
commit
dd9b0ec0f0
@ -1133,7 +1133,15 @@ namespace VEPROMS
|
|||||||
}
|
}
|
||||||
private void tv_SectionShouldClose(object sender, vlnTreeSectionInfoEventArgs args)
|
private void tv_SectionShouldClose(object sender, vlnTreeSectionInfoEventArgs args)
|
||||||
{
|
{
|
||||||
if (!args.MySectionInfo.IsStepSection) tc.CloseWordItem(args.MySectionInfo,args.IsDeleting);
|
if (!args.MySectionInfo.IsStepSection) tc.CloseWordItem(args.MySectionInfo, args.IsDeleting);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (tc == null) return;
|
||||||
|
StepTabPanel tp = tc.GetProcedureTabPanel(args.MySectionInfo as ItemInfo);
|
||||||
|
if (tp == null) return;
|
||||||
|
DisplayTabItem ti = tp.MyDisplayTabItem;
|
||||||
|
tc.CloseTabItem(ti);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
private void tv_WordSectionDeleted(object sender, WordSectionEventArgs args)
|
private void tv_WordSectionDeleted(object sender, WordSectionEventArgs args)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user