From d4f0563fdecbab2432658e6b7ada3fd6556856d8 Mon Sep 17 00:00:00 2001 From: Kathy Date: Fri, 13 Nov 2009 16:12:16 +0000 Subject: [PATCH] --- PROMS/Volian.Controls.Library/StepPanel.cs | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/PROMS/Volian.Controls.Library/StepPanel.cs b/PROMS/Volian.Controls.Library/StepPanel.cs index 47e8e1e7..8286d5a9 100644 --- a/PROMS/Volian.Controls.Library/StepPanel.cs +++ b/PROMS/Volian.Controls.Library/StepPanel.cs @@ -125,6 +125,18 @@ namespace Volian.Controls.Library { TabDisplay(sender, args); } + // close section, if deleting word doc section + public event StepPanelWordSectionCloseEvent WordSectionClose; + internal void OnWordSectionClose(object sender, WordSectionEventArgs args) + { + WordSectionClose(sender, args); + } + // if section deleted, have event to flag in other UI panels + public event StepPanelWordSectionDeletedEvent WordSectionDeleted; + internal void OnWordSectionDeleted(object sender, WordSectionEventArgs args) + { + WordSectionDeleted(sender, args); + } #endregion #region Link Events /// @@ -1006,6 +1018,18 @@ namespace Volian.Controls.Library _PanelTabName = panelTabname; } } + public partial class WordSectionEventArgs : EventArgs + { + private SectionInfo _MySectionInfo; + public SectionInfo MySectionInfo + { + get { return _MySectionInfo; } + } + public WordSectionEventArgs(SectionInfo mySectionInfo) + { + _MySectionInfo = mySectionInfo; + } + } public delegate void StepPanelEvent(object sender, StepPanelEventArgs args); public delegate void ItemSelectedChangedEvent(object sender, ItemSelectedChangedEventArgs args); public delegate void StepPanelLinkEvent(object sender, StepPanelLinkEventArgs args); @@ -1013,4 +1037,6 @@ namespace Volian.Controls.Library public delegate void StepRTBLinkEvent(object sender, StepPanelLinkEventArgs args); public delegate void StepPanelModeChangeEvent(object sender, StepRTBModeChangeEventArgs args); public delegate void StepPanelTabDisplayEvent(object sender, StepPanelTabDisplayEventArgs args); + public delegate void StepPanelWordSectionCloseEvent(object sender, WordSectionEventArgs args); + public delegate void StepPanelWordSectionDeletedEvent(object sender, WordSectionEventArgs args); }