Example #1
0
        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");
            }
        }
Example #2
0
 public void Go_Kick(Person a, Person b, int sum, Set <Person> qw)
 {
     Kick.Invoke(a, b, sum, qw);
 }
Example #3
0
 private void btnKick_Click(object sender, EventArgs e) => Kick?.Invoke(this, EventArgs.Empty);
Example #4
0
 internal void OnKick(KickMessage message) => Kick?.Invoke(message);