Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 21st, 2012  |  syntax: None  |  size: 0.38 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Passing multiple parameters in DataEventArgs
  2. public class MyEventsArgs:EventArgs
  3. {
  4.      public MyEventsArgs()
  5.      {
  6.  
  7.      }
  8.  
  9.      public int prop1 { get; set; }
  10.      public int prop2 { get; set; }
  11.      public int prop3 { get; set; }
  12. }
  13.        
  14. yourUI1.YourEvent += new EventHandler(hndlr);
  15.  
  16. public void hndlr(object obj, EventArgs args)
  17. {
  18.     MyEventsArgs myArgs = (MyEventsArgs)args;
  19. }