Exemple #1
0
 /*! \brief Raising an event invokes the event handler through a delegate.
  *
  * The \b OnUserDragEnd 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 OnUserDragEnd in a derived class, be sure to
  * call the base class's \b OnUserDragEnd method so that registered delegates
  * receive the event.  */
 protected virtual void OnUserDragEnd(Wimp.UserDragEventArgs e)
 {
     if (UserDragEnd != null)
     {
         UserDragEnd(this, e);
     }
 }
Exemple #2
0
 public void drag_end(object sender, Wimp.UserDragEventArgs e)
 {
     Reporter.WriteLine("User drag ended.");
     Reporter.WriteLine("  Resulting box was minx: {0}, miny: {1}, maxx: {2}, maxy: {3}",
                        e.Box.MinX, e.Box.MinY, e.Box.MaxX, e.Box.MaxY);
 }