This commit is contained in:
Kathy Ruffing 2009-11-13 16:55:52 +00:00
parent 2904c675d8
commit 055dae5906

View File

@ -168,6 +168,18 @@ namespace Volian.Controls.Library
if (PanelTabDisplay != null) PanelTabDisplay(sender, args); if (PanelTabDisplay != null) PanelTabDisplay(sender, args);
else MessageBox.Show("Cannot display information"); 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 #endregion
#region Contructor & Setup #region Contructor & Setup
public DisplayTabControl() public DisplayTabControl()
@ -288,6 +300,7 @@ namespace Volian.Controls.Library
} }
public void CloseWordItem(ItemInfo myItemInfo) public void CloseWordItem(ItemInfo myItemInfo)
{ {
CleanUpClosedItems();
string key = "Doc - " + myItemInfo.MyContent.MyEntry.MyDocument.DocID.ToString(); string key = "Doc - " + myItemInfo.MyContent.MyEntry.MyDocument.DocID.ToString();
DisplayTabItem myTabItem = null; DisplayTabItem myTabItem = null;
if (_MyDisplayTabItems.ContainsKey(key)) // If page open, close it if (_MyDisplayTabItems.ContainsKey(key)) // If page open, close it