Пример #1
0
 // --------------------------------------------------------------------------------------------
 /// <summary>
 /// Notifies the VSPackage that a window frame is closing and tells the environment what
 /// action to take.
 /// </summary>
 /// <param name="pgrfSaveOptions">
 /// Specifies options for saving window content. Values are taken from the __FRAMECLOSE
 /// enumeration.
 /// </param>
 // --------------------------------------------------------------------------------------------
 int IVsWindowFrameNotify3.OnClose(ref uint pgrfSaveOptions)
 {
     if (OnClose != null)
     {
         var e = new WindowFrameCloseEventArgs((FrameCloseOption)pgrfSaveOptions);
         OnClose(this, e);
     }
     InvokeStatusChanged();
     return(VSConstants.S_OK);
 }
Пример #2
0
 // --------------------------------------------------------------------------------------------
 /// <summary>
 /// Notifies the VSPackage that a window frame is closing and tells the environment what 
 /// action to take.
 /// </summary>
 /// <param name="pgrfSaveOptions">
 /// Specifies options for saving window content. Values are taken from the __FRAMECLOSE 
 /// enumeration.
 /// </param>
 // --------------------------------------------------------------------------------------------
 int IVsWindowFrameNotify3.OnClose(ref uint pgrfSaveOptions)
 {
   if (OnClose != null)
   {
     var e = new WindowFrameCloseEventArgs((FrameCloseOption)pgrfSaveOptions);
     OnClose(this, e);
   }
   InvokeStatusChanged();
   return VSConstants.S_OK;
 }