Пример #1
0
            protected override object SetUpMember(int index, object member)
            {
                SheetModel            sheet   = ((SheetModel)member);
                SSSheetNetworkService service = null;

                using (Synchronizer.Lock(m_Service.m_Slide.SyncRoot)) {
                    if (this.m_Service.GetSubmissionStyle() != SlideModel.StudentSubmissionStyle.Normal)
                    {
                        using (Synchronizer.Lock(sheet.SyncRoot)) {
                            if ((sheet.Disposition & SheetDisposition.Remote) == 0 && (sheet is RealTimeInkSheetModel))
                            {
                                if (this.m_Service.GetSubmissionStyle() == SlideModel.StudentSubmissionStyle.Shared)
                                {
                                    Message.AddLocalRef(this.m_Service.GetSubmissionSlideGuid(), this.m_Service.m_Slide);
                                }
                                //System.Windows.Forms.MessageBox.Show( sheet.GetType().ToString() );
                                service = new SSRealTimeInkSheetNetworkService(this.m_Service.m_Sender,
                                                                               this.m_Service.m_Presentation,
                                                                               this.m_Service.m_Deck,
                                                                               this.m_Service.m_Slide,
                                                                               (RealTimeInkSheetModel)sheet,
                                                                               this.m_Selector);
                            }
                        }
                    }
                }
                return(service);
            }
 protected override object SetUpMember(int index, object member)
 {
     SheetModel sheet = ((SheetModel) member);
     SSSheetNetworkService service = null;
     using( Synchronizer.Lock( m_Service.m_Slide.SyncRoot ) ) {
         if( this.m_Service.GetSubmissionStyle() != SlideModel.StudentSubmissionStyle.Normal ) {
             using( Synchronizer.Lock( sheet.SyncRoot ) ) {
                 if( (sheet.Disposition & SheetDisposition.Remote) == 0 && (sheet is RealTimeInkSheetModel) ) {
                     if( this.m_Service.GetSubmissionStyle() == SlideModel.StudentSubmissionStyle.Shared ) {
                         Message.AddLocalRef(this.m_Service.GetSubmissionSlideGuid(), this.m_Service.m_Slide);
                     }
                     //System.Windows.Forms.MessageBox.Show( sheet.GetType().ToString() );
                     service = new SSRealTimeInkSheetNetworkService( this.m_Service.m_Sender,
                                                                     this.m_Service.m_Presentation,
                                                                     this.m_Service.m_Deck,
                                                                     this.m_Service.m_Slide,
                                                                     (RealTimeInkSheetModel)sheet,
                                                                     this.m_Selector );
                 }
             }
         }
     }
     return service;
 }