Exemple #1
0
 public void DoCount()
 {
     for (int i = 1; i <= 10; ++i)
     {
         if (null != TestEvent1)
         {
             EventArgsTest e = new EventArgsTest();
             e.x = 10;
             TestEvent1(this, e);
         }
     }
 }
Exemple #2
0
 public static void PrintX(object sender, EventArgsTest e)
 {
     Console.WriteLine($"XXXXXXXXXXXXX:{e.x}");
 }