/// <summary> /// Build the network service /// </summary> /// <param name="sender">The message queue to use for these messages</param> /// <param name="presentation">The presentation to listen to changes to</param> public PresentationWebService( SendingQueue sender, PresentationModel presentation ) { handler = new WebService.SSEventHandler(HandleStudentSubmission); WebService.Instance.SubmissionReceived += handler; qpHandler = new WebService.QPEventHandler(HandleQuickPollReceived); WebService.Instance.QuickPollReceived += qpHandler; this.m_Sender = sender; this.m_Presentation = presentation; this.m_DeckTraversalsCollectionHelper = new DeckTraversalsCollectionHelper(this); // this.m_QuickPollWebService = new QuickPollWebService(this.m_Sender, this.m_Presentation); this.m_QuickPollChangedDispatcher = new EventQueue.PropertyEventDispatcher(this.m_Sender, new PropertyEventHandler(this.HandleQuickPollChanged)); this.m_Presentation.Changed["QuickPoll"].Add(this.m_QuickPollChangedDispatcher.Dispatcher); }
/// <summary> /// Build the network service /// </summary> /// <param name="sender">The message queue to use for these messages</param> /// <param name="presentation">The presentation to listen to changes to</param> public PresentationWebService(SendingQueue sender, PresentationModel presentation) { handler = new WebService.SSEventHandler(HandleStudentSubmission); WebService.Instance.SubmissionReceived += handler; qpHandler = new WebService.QPEventHandler(HandleQuickPollReceived); WebService.Instance.QuickPollReceived += qpHandler; this.m_Sender = sender; this.m_Presentation = presentation; this.m_DeckTraversalsCollectionHelper = new DeckTraversalsCollectionHelper(this); // this.m_QuickPollWebService = new QuickPollWebService(this.m_Sender, this.m_Presentation); this.m_QuickPollChangedDispatcher = new EventQueue.PropertyEventDispatcher(this.m_Sender, new PropertyEventHandler(this.HandleQuickPollChanged)); this.m_Presentation.Changed["QuickPoll"].Add(this.m_QuickPollChangedDispatcher.Dispatcher); }