public void Ack(int i)
 {
     if (i == 1)
     {
         if (myEvent1 != null)
         {
             myEvent1.Acknowledge();
         }
     }
     else if (i == 2)
     {
         if (myEvent2 != null)
         {
             myEvent2.Acknowledge();
         }
     }
 }