/// <summary> /// Invokes a new vote request for the given Mobile and VoteSite objects. /// </summary> /// <param name="from">Request sender.</param> /// <param name="site">VoteSite object.</param> public static void CastVote(Mobile from, VoteSite site) { if (from == null || from.Deleted || site == null) { return; } VoteEvents.InvokeVoteRequest(new VoteRequestEventArgs(from, site)); }
/// <summary> /// Invokes a new vote request for the given Mobile and VoteSite objects. /// </summary> /// <param name="from">Request sender.</param> /// <param name="site">VoteSite object.</param> public static void CastVote(Mobile from, VoteSite site) { VoteEvents.InvokeVoteRequest(new VoteRequestEventArgs(from, site)); }