main
1using System;
2using System.ComponentModel;
3using System.Windows.Forms;
4
5namespace MoMoney.Presentation.Winforms.Helpers
6{
7 public class Events
8 {
9 public interface ControlEvents : IEventTarget
10 {
11 void OnEnter(EventArgs args);
12 void OnKeyPress(KeyPressEventArgs args);
13 void OnKeyUp(KeyEventArgs args);
14 void OnKeyDown(KeyEventArgs args);
15 void OnClick(EventArgs args);
16 void OnDoubleClick(EventArgs args);
17 void OnDragDrop(DragEventArgs args);
18 void OnDragEnter(DragEventArgs args);
19 void OnDragLeave(EventArgs args);
20 void OnDragOver(DragEventArgs args);
21 void OnMouseWheel(MouseEventArgs args);
22 void OnValidated(EventArgs args);
23 void OnValidating(CancelEventArgs args);
24 void OnLeave(EventArgs args);
25 }
26
27 public interface FormEvents : ControlEvents
28 {
29 void OnActivated(EventArgs e);
30 void OnDeactivate(EventArgs e);
31 void OnClosed(EventArgs e);
32 void OnClosing(CancelEventArgs e);
33 }
34 }
35}