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); }
private void ReaderOverlayWindow_OnClosing(object sender, CancelEventArgs e) { if (_laserPointerWndCtx != null) { _laserPointerWndCtx.Dispose(); _laserPointerWndCtx = null; } }
private void BrowserOverlayWindow_OnClosing(object sender, CancelEventArgs e) { _dispTimer.Stop(); _dispTimer.Tick -= _dispTimer_Tick; if (_laserPointerWndCtx != null) { _laserPointerWndCtx.Dispose(); _laserPointerWndCtx = null; } }