예제 #1
0
        /// <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));
        }
예제 #2
0
 /// <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));
 }