public VetoEventArgs Vote(string proposal) { VetoEventArgs results = new VetoEventArgs() { Proposal = proposal }; OnVote?.Invoke(this, results); return(results); }
public void Veto(object sender, VetoEventArgs e) { if (e.VetoBy != null) { return; } if (rng.Next(0, 100) % 5 == 0) { e.VetoBy = this; } }