Beispiel #1
0
 /*! \brief Raising an event invokes the event handler through a delegate.
  *
  * The \b OnAboutToBeShown method also allows derived classes to handle the
  * event without attaching a delegate. This is the preferred technique for
  * handling the event in a derived class.
  * \note  When overriding \b OnAboutToBeShown in a derived class, be sure to
  * call the base class's \b OnAboutToBeShown method so that registered delegates
  * receive the event.  */
 protected virtual void OnAboutToBeShown(AboutToBeShownEventArgs e)
 {
     if (AboutToBeShown != null)
     {
         AboutToBeShown(this, e);
     }
 }
Beispiel #2
0
 /*! \brief Raising an event invokes the event handler through a delegate.
  *
  * The \b OnSelectClickAboutToBeShown method also allows derived classes to
  * handle the event without attaching a delegate. This is the preferred technique
  * for handling the event in a derived class.
  * \note  When overriding \b OnSelectClickAboutToBeShown in a derived class, be
  * sure to call the base class's \b OnSelectClickAboutToBeShown method so that
  * registered delegates receive the event.  */
 protected virtual void OnSelectClickAboutToBeShown(AboutToBeShownEventArgs e)
 {
     if (SelectClickAboutToBeShown != null)
     {
         SelectClickAboutToBeShown(this, e);
     }
 }