This commit is contained in:
Kathy Ruffing 2009-11-20 11:41:02 +00:00
parent 1f71be0813
commit 1bea968285

View File

@ -122,6 +122,7 @@ namespace VEPROMS
tv.NodeSelect += new Volian.Controls.Library.vlnTreeViewEvent(tv_NodeSelect);
tv.OpenItem += new vlnTreeViewItemInfoEvent(tv_OpenItem);
tv.DeleteItemInfo += new vlnTreeViewItemInfoDeleteEvent(tv_DeleteItemInfo);
tv.InsertItemInfo += new vlnTreeViewItemInfoInsertEvent(tv_InsertItemInfo);
_CommentTitleBckColor = epAnnotations.TitleStyle.BackColor1.Color;
if (!btnAnnoDetailsPushPin.Checked)
epAnnotations.Expanded = false;
@ -130,6 +131,11 @@ namespace VEPROMS
ribbonControl1.ExpandedChanged +=new EventHandler(ribbonControl1_ExpandedChanged);
}
bool tv_InsertItemInfo(object sender, vlnTreeItemInfoInsertEventArgs args)
{
return tc.InsertStepItem(args.MyItemInfo, args.StepText, args.InsertType, args.FromType, args.Type);
}
private bool tv_DeleteItemInfo(object sender, vlnTreeItemInfoEventArgs args)
{
return tc.DeleteStepItem(args.MyItemInfo);
@ -174,6 +180,7 @@ namespace VEPROMS
#if (DEBUG)
#else
//labelItem1.Visible = btnItemInfo.Visible = false;
lblItemID.Visible = false;
btnItemInfo.Visible = false;
#endif
}
@ -721,12 +728,24 @@ namespace VEPROMS
#region InfoTabLibDocs
private void tabItemLibDocs_Click(object sender, EventArgs e)
{
displayLibDocs.LibDocListFillIn(tc);
displayLibDocs.RefreshLibDocPanel(tc);
//displayLibDocs.LibDocListFillIn(tc);
}
private void tv_SectionShouldClose(object sender, vlnTreeSectionInfoEventArgs args)
{
if (!args.MySectionInfo.IsStepSection) tc.CloseWordItem(args.MySectionInfo);
}
private void tv_WordSectionDeleted(object sender, WordSectionEventArgs args)
{
// is it a library document - if so and libdoc panel is visible, update lists on panel.
if ((!args.MySectionInfo.IsStepSection) && ((args.MySectionInfo.MyContent.MyEntry.MyDocument.LibTitle ?? "") != "") && (toolsPanel.Expanded))
{
if (toolsTabs.SelectedTab == tabItemLibDocs)
{
displayLibDocs.RefreshLibDocPanel(tc);
}
}
}
#endregion
#region InfoTabTags
private void infotabTags_Click(object sender, EventArgs e)
@ -808,9 +827,13 @@ namespace VEPROMS
// When infotabTags is set to InVisible, the matching panel also needs to be set to invisible
infotabControlPanelTags.Visible = false;
SelectedStepTabPanel = null;
lblItemID.Text = "No Item Selected";
lblItemID.ForeColor = Color.Yellow;
}
else
{
lblItemID.Text = string.Format("ItemID = {0}", args.MyItemInfo.ItemID);
lblItemID.ForeColor = Color.DarkBlue;
if (_CurrentItem != args.MyItemInfo)
{
if (_CurrentItem != null) _CurrentItem.Deleted -= new ItemInfoEvent(_CurrentItem_Deleted);