protected override void OnOpen() { r2warsStatic.r2w.Event_draw -= h1; h1 = new MyHandler1(R2wars_EventPinta); r2warsStatic.r2w.Event_draw += h1; base.OnOpen(); }
public A(B b) { MyHandler1 d1 = new MyHandler1(OnHandler1); MyHandler2 d2 = new MyHandler2(OnHandler2); b.Event1 += d1; b.Event2 += d2; }
private void WireEventHandlers(CreateOrder createOrder) { MyHandler1 handler = new MyHandler1(OnHandler1); createOrder.Event1 += handler; }