internal UndoRedoApproveAnalysis(InterlinDocForAnalysis interlinDoc, AnalysisOccurrence oldAnnotation, AnalysisOccurrence newAnnotation) { m_interlinDoc = interlinDoc; m_oldOccurrence = oldAnnotation; m_newOccurrence = newAnnotation; }
/// <summary> /// Create a new one. /// </summary> /// <param name="cache"></param> /// <param name="ss"></param> /// <param name="choices"></param> /// <param name="mediator"></param> public Sandbox(FdoCache cache, Mediator mediator, IVwStylesheet ss, InterlinLineChoices choices, AnalysisOccurrence selected, FocusBoxController focusBox) : base(cache, mediator, ss, choices) { FocusBox = focusBox; m_interlinDoc = focusBox.InterlinDoc; m_occurrenceSelected = selected; // Finish initialization with occurrence context. LoadForWordBundleAnalysis(m_occurrenceSelected.Analysis.Hvo); }
/// <summary> /// Create a new one. /// </summary> /// <param name="cache"></param> /// <param name="ss"></param> /// <param name="choices"></param> /// <param name="mediator"></param> public Sandbox(FdoCache cache, Mediator mediator, IVwStylesheet ss, InterlinLineChoices choices, AnalysisOccurrence selected, FocusBoxController focusBox) : this(cache, mediator, ss, choices) { FocusBox = focusBox; m_interlinDoc = focusBox.InterlinDoc; m_occurrenceSelected = selected; // Finish initialization with occurrence context. LoadForWordBundleAnalysis(m_occurrenceSelected.Analysis.Hvo); }
/// ----------------------------------------------------------------------------------- /// <summary> /// Clean up any resources being used. /// </summary> /// ----------------------------------------------------------------------------------- protected override void Dispose(bool disposing) { System.Diagnostics.Debug.WriteLineIf(!disposing, "****************** Missing Dispose() call for " + GetType().Name + ". ******************"); // Must not be run more than once. if (IsDisposed) { return; } base.Dispose(disposing); if (disposing) { } m_interlinDoc = null; }
internal void SetInterlinDocForTest(InterlinDocForAnalysis mockDoc) { m_mockInterlinDoc = mockDoc; }
internal UndoRedoApproveAnalysis(InterlinDocForAnalysis interlinDoc, AnalysisOccurrence oldAnnotation, AnalysisOccurrence newAnnotation) { m_interlinDoc = interlinDoc; m_cache = m_interlinDoc.Cache; m_oldOccurrence = oldAnnotation; m_newOccurrence = newAnnotation; }
/// ----------------------------------------------------------------------------------- /// <summary> /// Clean up any resources being used. /// </summary> /// ----------------------------------------------------------------------------------- protected override void Dispose( bool disposing ) { System.Diagnostics.Debug.WriteLineIf(!disposing, "****************** Missing Dispose() call for " + GetType().Name + ". ******************"); // Must not be run more than once. if (IsDisposed) return; base.Dispose( disposing ); if (disposing) { } m_interlinDoc = null; }