/// <summary> /// Raises a command. /// </summary> public override void RaiseCommand(CommandEventArgs e) { // base.RaiseCommand(e); // do not fire to parent containers! if (ButtonClick != null) { if (clickEvent == null) { clickEvent = new ButtonGroupEventArgs(); } int index = int.Parse(e.Command); clickEvent.Index = index; clickEvent.Button = buttons[index]; ButtonClick(this, clickEvent); } }
public override void RaiseCommand(CommandEventArgs e) { // base.RaiseCommand(e); // do not fire to parent containers! if (ButtonClick != null) { if (clickEvent == null) clickEvent = new ButtonGroupEventArgs(); int index = int.Parse(e.Command); clickEvent.Index = index; clickEvent.Button = buttons[index]; ButtonClick(this, clickEvent); } }