예제 #1
0
 private void mouseDown(object sender, MouseEventArgs e)
 {
     Focus();
     if (e.Button == MouseButtons.Left)
     {
         PressDown?.Invoke(this, EventArgs.Empty);
     }
 }
예제 #2
0
 private void keyDown(object sender, KeyEventArgs e)
 {
     switch (e.KeyData)
     {
     case Keys.Enter:
     case Keys.Space:
         PressDown?.Invoke(this, EventArgs.Empty);
         onPressed();
         break;
     }
 }
예제 #3
0
 public void Down()
 {
     PressDown?.Invoke();
 }