Ejemplo n.º 1
0
 /// <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);
     }
 }
Ejemplo n.º 2
0
 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);
     }
 }