Example #1
0
        /// <summary>
        /// Caches all the Special Polls into a hashtable.
        /// </summary>
        public static void Init()
        {
            virtualPoll         pollInit;
            virtualPollQuestion pollQuestionInit;

            #region Send packet

            #region Self -1
            pollInit                = new virtualPoll(-1, "Please type the packet to send to your self", "Processing...");
            pollQuestionInit        = new virtualPollQuestion(-1, "Data:");
            pollQuestionInit.Format = virtualPollQuestion.FormatType.Textarea;
            pollInit.addQuestion(pollQuestionInit);
            specialPolls.Add(-1, pollInit);
            #endregion

            #region User -2
            pollInit = new virtualPoll(-2, "Send data to user", "Processing...");
            //pollQuestionInit = new virtualPollQuestion(-2, "Name of use to send to:");
            //pollQuestionInit.Format = virtualPollQuestion.FormatType.Textarea;
            //pollInit.addQuestion(pollQuestionInit);
            pollQuestionInit        = new virtualPollQuestion(-3, "Data:");
            pollQuestionInit.Format = virtualPollQuestion.FormatType.Textarea;
            pollInit.addQuestion(pollQuestionInit);
            specialPolls.Add(-2, pollInit);
            #endregion

            #region Room -3
            pollInit         = new virtualPoll(-3, "Send data to this room", "Processing...");
            pollQuestionInit = new virtualPollQuestion(-4, "Include your self:");
            pollQuestionInit.addAnswer(1, "Yes");
            pollQuestionInit.addAnswer(2, "No");
            pollQuestionInit.setOptions(virtualPollQuestion.FormatType.RadioButton, 1, 1);
            pollInit.addQuestion(pollQuestionInit);
            pollQuestionInit        = new virtualPollQuestion(-5, "Data:");
            pollQuestionInit.Format = virtualPollQuestion.FormatType.Textarea;
            pollInit.addQuestion(pollQuestionInit);
            specialPolls.Add(-3, pollInit);
            #endregion

            #region Hotel -4
            pollInit         = new virtualPoll(-4, "Send data to the whole hotel", "Processing...");
            pollQuestionInit = new virtualPollQuestion(-6, "Include your self:");
            pollQuestionInit.addAnswer(1, "Yes");
            pollQuestionInit.addAnswer(2, "No");
            pollQuestionInit.setOptions(virtualPollQuestion.FormatType.RadioButton, 1, 1);
            pollInit.addQuestion(pollQuestionInit);
            pollQuestionInit        = new virtualPollQuestion(-7, "Data:");
            pollQuestionInit.Format = virtualPollQuestion.FormatType.Textarea;
            pollInit.addQuestion(pollQuestionInit);
            specialPolls.Add(-4, pollInit);
            #endregion

            #endregion

            #region Edit Rights
            // Coming soon.
            #endregion
        }
Example #2
0
        public static virtualPoll getRoomPoll(int RoomID)
        {
            virtualPoll vPol = null;

            return(vPol);
        }