Пример #1
0
 public static void LogEven(object Sender, IntEventArgs e)
 {
     if (e.Value % 2 == 0)
     {
         Console.WriteLine("Парне значення стану");
     }
 }
Пример #2
0
 private void Handler(object Sender, IntEventArgs e)
 {
     if (Condition(e.Value))
     {
         Count++;
         Console.WriteLine($"Стан задовільнив умову {Count} разів");
     }
 }
Пример #3
0
 public static void Log(object Sender, IntEventArgs e)
 {
     Console.WriteLine($"Нове значення стану:  {e.Value}");
 }