From 055dae5906ef6df86bb7abfbb4e83902041d417e Mon Sep 17 00:00:00 2001 From: Kathy Date: Fri, 13 Nov 2009 16:55:52 +0000 Subject: [PATCH] --- PROMS/Volian.Controls.Library/DisplayTabControl.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/PROMS/Volian.Controls.Library/DisplayTabControl.cs b/PROMS/Volian.Controls.Library/DisplayTabControl.cs index c9748860..4f16fa37 100644 --- a/PROMS/Volian.Controls.Library/DisplayTabControl.cs +++ b/PROMS/Volian.Controls.Library/DisplayTabControl.cs @@ -168,6 +168,18 @@ namespace Volian.Controls.Library if (PanelTabDisplay != null) PanelTabDisplay(sender, args); else MessageBox.Show("Cannot display information"); } + public event StepPanelWordSectionCloseEvent WordSectionClose; + internal void OnWordSectionClose(object sender, WordSectionEventArgs args) + { + if (WordSectionClose != null) WordSectionClose(sender, args); + else MessageBox.Show("Cannot close associated Word section"); + } + public event StepPanelWordSectionDeletedEvent WordSectionDeleted; + internal void OnWordSectionDeleted(object sender, WordSectionEventArgs args) + { + if (WordSectionDeleted != null) WordSectionDeleted(sender, args); + else MessageBox.Show("Cannot delete associated Word section"); + } #endregion #region Contructor & Setup public DisplayTabControl() @@ -288,6 +300,7 @@ namespace Volian.Controls.Library } public void CloseWordItem(ItemInfo myItemInfo) { + CleanUpClosedItems(); string key = "Doc - " + myItemInfo.MyContent.MyEntry.MyDocument.DocID.ToString(); DisplayTabItem myTabItem = null; if (_MyDisplayTabItems.ContainsKey(key)) // If page open, close it