Using Anonymous Methods for Handlers
public class ShowOrders : UIControllerBase
{
public readonly Models.Orders Orders = new Models.Orders();
public ShowOrders()
{
From = Orders;
- Handlers.Add(System.Windows.Forms.Keys.F8).Invokes += ShowOrders_Invokes;
Handlers.Add(System.Windows.Forms.Keys.F8).Invokes += e => Message.ShowWarning("Pressed F8");
}
- private void ShowOrders_Invokes(Firefly.Box.Advanced.HandlerInvokeEventArgs e)
- {
- Message.ShowWarning("Pressed F8");
- }
Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com