private void ClientSocketOnVoteReceived(object sender, ClientVoteReceivedEventArgs e) { Debug.WriteLine("Client " + e.Client.Name + " voted"); }
protected virtual void VoteReceivedEvent(ClientVoteReceivedEventArgs e) { EventHandler <ClientVoteReceivedEventArgs> handler = VoteReceived; handler?.Invoke(this, e); }