static void Main(string[] args) { Counter counter = new Counter(); Handler1 handler1 = new Handler1(); Handler2 handler2 = new Handler2(); counter.Notyfi += handler1.Handler; counter.Notyfi += handler2.Handler; counter.CountNumbers(); }
static void Main(string[] args) { int[] Counter = new int[100]; for (int value = 0; value <= 100; value++) { if (value == 69) { Handler1 first = new Handler1(); Handler2 second = new Handler2(); first.H1 += FirstPhrase; first.HandlerFirst(value); second.H1 += SecondPhrase; second.HandlerSecond(value);