public void RemoveEvent(EventHandel ev, EventState type) { switch (type) { case EventState.Enter: { ClickEnterBtEvent -= ev; break; } case EventState.Esc: { ClickEscBtEvent -= ev; break; } case EventState.Up: { ClickUpBtEvent -= ev; break; } case EventState.Down: { ClickDownBtEvent -= ev; break; } case EventState.Left: { ClickLeftBtEvent -= ev; break; } case EventState.Right: { ClickRightBtEvent -= ev; break; } } }
public void AddEvent(EventHandel ev) { CallBackEvent += ev; }
public void RemoveEvent(EventHandel ev) { CallBackEvent -= ev; }