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