示例#1
0
 private void ClientSocketOnVoteReceived(object sender, ClientVoteReceivedEventArgs e)
 {
     Debug.WriteLine("Client " + e.Client.Name + " voted");
 }
示例#2
0
        protected virtual void VoteReceivedEvent(ClientVoteReceivedEventArgs e)
        {
            EventHandler <ClientVoteReceivedEventArgs> handler = VoteReceived;

            handler?.Invoke(this, e);
        }