Beispiel #1
0
 private void ScnDoubleClick(ref NativeMethods.SCNotification scn)
 {
     var keys = Keys.Modifiers & (Keys)(scn.modifiers << 16);
     var eventArgs = new DoubleClickEventArgs(this, keys, scn.position, scn.line);
     OnDoubleClick(eventArgs);
 }
Beispiel #2
0
 /// <summary>
 /// Raises the <see cref="DoubleClick" /> event.
 /// </summary>
 /// <param name="e">A <see cref="DoubleClickEventArgs" /> that contains the event data.</param>
 protected virtual void OnDoubleClick(DoubleClickEventArgs e)
 {
     var handler = Events[doubleClickEventKey] as EventHandler<DoubleClickEventArgs>;
     if (handler != null)
         handler(this, e);
 }