예제 #1
0
        private void topicSelectionChanged(SelectionChangedEventArgs e)
        {
            if (_laserPointerWndCtx != null)
            {
                _laserPointerWndCtx.Dispose();
            }
            _laserPointerWndCtx = new LaserPointerWndCtx(laserScene,
                                                         CurrentTopic.Id,
                                                         LaserPointerTargetSurface.PublicBoard);
            ExplanationModeMediator.Inst.LasersEnabled = false;

            if (CurrentTopic != null)
            {
                ExplanationModeMediator.Inst.CurrentTopicId = CurrentTopic.Id;
            }
            else
            {
                ExplanationModeMediator.Inst.CurrentTopicId = null;
            }

            CleanupEditCtx();

            if (topicNavPanel.selectedTopic == null)
            {
                return;
            }

            CreateEditCtx();

            //to update text
            onStopWatch(null, null);
        }
예제 #2
0
 private void ReaderOverlayWindow_OnClosing(object sender, CancelEventArgs e)
 {
     if (_laserPointerWndCtx != null)
     {
         _laserPointerWndCtx.Dispose();
         _laserPointerWndCtx = null;
     }
 }
예제 #3
0
        private void BrowserOverlayWindow_OnClosing(object sender, CancelEventArgs e)
        {
            _dispTimer.Stop();
            _dispTimer.Tick -= _dispTimer_Tick;

            if (_laserPointerWndCtx != null)
            {
                _laserPointerWndCtx.Dispose();
                _laserPointerWndCtx = null;
            }
        }