This commit is contained in:
Kathy Ruffing 2010-03-25 11:16:47 +00:00
parent 752eb4aa89
commit 6a47db9b8d

View File

@ -128,6 +128,8 @@ namespace VEPROMS
tv.OpenItem += new vlnTreeViewItemInfoEvent(tv_OpenItem);
tv.DeleteItemInfo += new vlnTreeViewItemInfoDeleteEvent(tv_DeleteItemInfo);
tv.InsertItemInfo += new vlnTreeViewItemInfoInsertEvent(tv_InsertItemInfo);
tv.PasteItemInfo += new vlnTreeViewItemInfoPasteEvent(tv_PasteItemInfo);
tc.ItemPaste += new StepPanelItemPastedEvent(tc_ItemPasted);
_CommentTitleBckColor = epAnnotations.TitleStyle.BackColor1.Color;
if (!btnAnnoDetailsPushPin.Checked)
epAnnotations.Expanded = false;
@ -149,7 +151,10 @@ namespace VEPROMS
//si.RemoveItem();
//return true;
}
private bool tv_PasteItemInfo(object sender, vlnTreeItemInfoPasteEventArgs args)
{
return tc.PasteStepItem(args.MyItemInfo, args.CopyStartID, args.PasteType, (int)args.Type);
}
private void frmVEPROMS_FormClosing(object sender, FormClosingEventArgs e)
{
// Save the location and size of the VE-PROMS appication for this user
@ -795,7 +800,17 @@ namespace VEPROMS
}
}
}
private void tc_ItemPasted(object sender, vlnTreeItemInfoPasteEventArgs args)
{
// all this needs to do is refresh the libdoc display - if it is visible
// and the current item is word section, i.e. it may be a lib doc & would
// require refresh of the lib doc panel.
if (toolsTabs.SelectedTab == tabItemLibDocs && args.MyItemInfo.IsSection)
{
SectionInfo si = args.MyItemInfo as SectionInfo;
if (si != null && (si.MyContent.MyEntry.MyDocument.LibTitle ?? "") != "") displayLibDocs.RefreshLibDocPanel(tc);
}
}
private void tc_PanelTabDisplay(object sender, StepPanelTabDisplayEventArgs args)
{
if (args.PanelTabName == "Bookmarks")