/// ------------------------------------------------------------------------------------ /// <summary> /// Override to start an undoable UOW. /// </summary> /// ------------------------------------------------------------------------------------ public override void TestSetup() { base.TestSetup(); FwStyleSheet styleSheet = new FwStyleSheet(); styleSheet.Init(Cache, m_scr.Hvo, ScriptureTags.kflidStyles); Debug.Assert(m_draftView == null); m_draftView = new TeDummyBasicView(); m_draftView.Cache = Cache; m_draftView.Visible = false; m_draftView.StyleSheet = styleSheet; m_draftView.Width = 300; m_draftView.Height = 290; m_draftView.CallLayout(); var exod = CreateExodusData(); var levi = CreateLeviticusData(); ((TeEditingHelper)m_draftView.EditingHelper).BookFilter.Add(new IScrBook[] { exod, levi }); m_actionHandler.EndUndoTask(); // This should cause a PropChanged to update the view m_actionHandler.BeginUndoTask("Test", "Test"); }
public override void Initialize() { CheckDisposed(); base.Initialize(); FwStyleSheet styleSheet = new FwStyleSheet(); styleSheet.Init(Cache, m_scr.Hvo, (int)Scripture.ScriptureTags.kflidStyles); Debug.Assert(m_draftView == null); m_draftView = new TeDummyBasicView(); m_draftView.Cache = Cache; m_draftView.Visible = false; m_draftView.StyleSheet = styleSheet; m_draftView.Width = 300; m_draftView.Height = 290; m_draftView.CallLayout(); }