Пример #1
0
 public void OnSignalArrived(object sender, SignalArgs e)
 {
     if (e.ServerAlive)
     {
         MainForm.counter++;
         signalStatuslabel.Text = $"  server signal# {counter}";
     }
 }
Пример #2
0
 public void Signal()
 {
     if (SignalArrived != null)
     {
         SignalArgs args = new SignalArgs();
         args.ServerAlive = true;
         SignalArrived(this, args);
     }
 }