public void Game() { Random rnd = new Random(); int magicNumber = rnd.Next(0, 10); if (magicNumber > 2) { Console.WriteLine("Ping получил Pong"); Kick?.Invoke(); } else { Console.WriteLine("Pong промахнулся, победил Ping"); } }
public void Go_Kick(Person a, Person b, int sum, Set <Person> qw) { Kick.Invoke(a, b, sum, qw); }
private void btnKick_Click(object sender, EventArgs e) => Kick?.Invoke(this, EventArgs.Empty);
internal void OnKick(KickMessage message) => Kick?.Invoke(message);