public MenuItem SetAction(GwenEventHandler handler) { if (m_Accelerator != null) { AddAccelerator(m_Accelerator.Text, handler); } Selected += handler; return(this); }
public MenuItem SetAction(GwenEventHandler <EventArgs> handler, GwenEventHandler <ItemSelectedEventArgs> selHandler) { if (m_Accelerator != null) { AddAccelerator(m_Accelerator.Text, handler); } Selected += selHandler; return(this); }
/// <summary> /// Adds keyboard accelerator. /// </summary> /// <param name="accelerator">Accelerator text.</param> /// <param name="handler">Handler.</param> public void AddAccelerator(string accelerator, GwenEventHandler <EventArgs> handler) { accelerator = accelerator.Trim().ToUpperInvariant(); m_Accelerators[accelerator] = handler; }
/// <summary> /// Adds keyboard accelerator. /// </summary> /// <param name="accelerator">Accelerator text.</param> /// <param name="handler">Handler.</param> public void AddAccelerator(string accelerator, GwenEventHandler<EventArgs> handler) { accelerator = accelerator.Trim().ToUpperInvariant(); m_Accelerators[accelerator] = handler; }
public MenuItem SetAction(GwenEventHandler handler) { if (m_Accelerator != null) { AddAccelerator(m_Accelerator.Text, handler); } Selected += handler; return this; }
public MenuItem SetAction(GwenEventHandler<EventArgs> handler, GwenEventHandler<ItemSelectedEventArgs> selHandler) { if (m_Accelerator != null) { AddAccelerator(m_Accelerator.Text, handler); } Selected += selHandler; return this; }