public void HandlePollingAnswer(PollAnswerMessage msg) { try { //if((thisPollType != PollType.FreeResponse) && (thisPollType != PollType.MultipleSelect)) { for(int i=0;i<this.AnswersList.Count;i++) { if(((PollingAnswer)AnswersList[i]).clientId==msg.clientID) { ((PollingAnswer)AnswersList[i]).choiceIndex=msg.choice; ((PollingAnswer)AnswersList[i]).choice=msg.choiceText; ((PollingAnswer)AnswersList[i]).clientName=msg.clientName; SetResultData(thisPollType); return; } } } } catch(Exception exp) { WebMeeting.Client.ClientUI.getInstance().ShowExceptionMessage("Polling ===>Polling.cs @HandlePollingAnswer(PollAnswerMessage msg) line==> 456",exp,null,false); } /* else //if(thisPollType == PollType.MultipleSelect) { for(int i=0;i<this.AnswersList.Count;i++) { if(((PollingAnswer)AnswersList[i]).clientId==msg.clientID) { ((PollingAnswer)AnswersList[i]).choice=msg.choiceText; ((PollingAnswer)AnswersList[i]).clientName=msg.clientName; ((PollingAnswer)AnswersList[i]).choiceIndex=msg.choice; SetResultData(thisPollType); return; } } } */ }
/* public void test1() { thr.Name="test thread"; thr.Start(); } */ public void AttendeeFormBlock() { this.attendeeForm=new PollAttendeeForm(); this.ArrayAttendeeForm.Add(this.attendeeForm); PollType type=this.testtype; try { if((type == PollType.MultipleSelect ) && (type == PollType.FreeResponse)) pr.DisableCharting(); attendeeForm.SetAnonymousPoll(this.anonymous); attendeeForm.SetQuestion(this.question); attendeeForm.SetOptions(type,this.choices); if(attendeeForm.Text.IndexOf("Evaluation") == -1) attendeeForm.Text = "Poll By: " + ClientName; else attendeeForm.Text = "Evaluation By: " + ClientName; attendeeForm.thisWindowPollingObject = this; if(DialogResult.OK == attendeeForm.ShowDialog()) { PollAnswerMessage msg=new PollAnswerMessage(); if((type != PollType.MultipleSelect ) && (type != PollType.FreeResponse)) msg.choice=attendeeForm.GetAnswerIndex(); else msg.choice= -2; msg.choiceText=attendeeForm.GetAnswerText(type); msg.sessionID=this.sessionID; msg.clientName=NetworkManager.getInstance().profile.Name; msg.clientID=NetworkManager.thisInstance.profile.ClientId; msg.questiontext = attendeeForm.getQuestionText(); msg.pollType = type; msg.choices = getChoicesString(this.choices); msg.ConferenceID = NetworkManager.getInstance().profile.ConferenceID ; NetworkManager.getInstance().SendLoadPacket(msg); } } catch (Exception exp) { WebMeeting.Client.ClientUI.getInstance().ShowExceptionMessage("Polling ===>Polling.cs @ShowAttendeeForm(PollType type) line==> 596",exp,null,false); } }