This commit is contained in:
parent
1f71be0813
commit
1bea968285
@ -122,6 +122,7 @@ namespace VEPROMS
|
|||||||
tv.NodeSelect += new Volian.Controls.Library.vlnTreeViewEvent(tv_NodeSelect);
|
tv.NodeSelect += new Volian.Controls.Library.vlnTreeViewEvent(tv_NodeSelect);
|
||||||
tv.OpenItem += new vlnTreeViewItemInfoEvent(tv_OpenItem);
|
tv.OpenItem += new vlnTreeViewItemInfoEvent(tv_OpenItem);
|
||||||
tv.DeleteItemInfo += new vlnTreeViewItemInfoDeleteEvent(tv_DeleteItemInfo);
|
tv.DeleteItemInfo += new vlnTreeViewItemInfoDeleteEvent(tv_DeleteItemInfo);
|
||||||
|
tv.InsertItemInfo += new vlnTreeViewItemInfoInsertEvent(tv_InsertItemInfo);
|
||||||
_CommentTitleBckColor = epAnnotations.TitleStyle.BackColor1.Color;
|
_CommentTitleBckColor = epAnnotations.TitleStyle.BackColor1.Color;
|
||||||
if (!btnAnnoDetailsPushPin.Checked)
|
if (!btnAnnoDetailsPushPin.Checked)
|
||||||
epAnnotations.Expanded = false;
|
epAnnotations.Expanded = false;
|
||||||
@ -130,6 +131,11 @@ namespace VEPROMS
|
|||||||
ribbonControl1.ExpandedChanged +=new EventHandler(ribbonControl1_ExpandedChanged);
|
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)
|
private bool tv_DeleteItemInfo(object sender, vlnTreeItemInfoEventArgs args)
|
||||||
{
|
{
|
||||||
return tc.DeleteStepItem(args.MyItemInfo);
|
return tc.DeleteStepItem(args.MyItemInfo);
|
||||||
@ -174,6 +180,7 @@ namespace VEPROMS
|
|||||||
#if (DEBUG)
|
#if (DEBUG)
|
||||||
#else
|
#else
|
||||||
//labelItem1.Visible = btnItemInfo.Visible = false;
|
//labelItem1.Visible = btnItemInfo.Visible = false;
|
||||||
|
lblItemID.Visible = false;
|
||||||
btnItemInfo.Visible = false;
|
btnItemInfo.Visible = false;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -721,12 +728,24 @@ namespace VEPROMS
|
|||||||
#region InfoTabLibDocs
|
#region InfoTabLibDocs
|
||||||
private void tabItemLibDocs_Click(object sender, EventArgs e)
|
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)
|
private void tv_SectionShouldClose(object sender, vlnTreeSectionInfoEventArgs args)
|
||||||
{
|
{
|
||||||
if (!args.MySectionInfo.IsStepSection) tc.CloseWordItem(args.MySectionInfo);
|
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
|
#endregion
|
||||||
#region InfoTabTags
|
#region InfoTabTags
|
||||||
private void infotabTags_Click(object sender, EventArgs e)
|
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
|
// When infotabTags is set to InVisible, the matching panel also needs to be set to invisible
|
||||||
infotabControlPanelTags.Visible = false;
|
infotabControlPanelTags.Visible = false;
|
||||||
SelectedStepTabPanel = null;
|
SelectedStepTabPanel = null;
|
||||||
|
lblItemID.Text = "No Item Selected";
|
||||||
|
lblItemID.ForeColor = Color.Yellow;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
lblItemID.Text = string.Format("ItemID = {0}", args.MyItemInfo.ItemID);
|
||||||
|
lblItemID.ForeColor = Color.DarkBlue;
|
||||||
if (_CurrentItem != args.MyItemInfo)
|
if (_CurrentItem != args.MyItemInfo)
|
||||||
{
|
{
|
||||||
if (_CurrentItem != null) _CurrentItem.Deleted -= new ItemInfoEvent(_CurrentItem_Deleted);
|
if (_CurrentItem != null) _CurrentItem.Deleted -= new ItemInfoEvent(_CurrentItem_Deleted);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user