Пример #1
0
		public override void TestSetup()
		{
			base.TestSetup();

			// Save value of user prompt setting - restored in Cleanup.
			m_saveShowPrompts = Options.ShowEmptyParagraphPromptsSetting;
			Options.ShowEmptyParagraphPromptsSetting = false;
			m_saveSegmentedBT = Options.UseInterlinearBackTranslation;
			Options.UseInterlinearBackTranslation = CreateSegmentedBt;

			Debug.Assert(m_draftForm == null, "m_draftForm is not null.");
			//if (m_draftForm != null)
			//	m_draftForm.Dispose();
			m_draftForm = new DummyDraftViewForm(Cache);
			m_draftForm.DeleteRegistryKey();
			m_draftForm.CreateDraftView(Cache, CreateBtDraftView);

			m_draftView = m_draftForm.DraftView;
			m_draftView.Width = 300;
			m_draftView.Height = 290;
			m_draftView.CallOnLayout();

			// Set the selection at the start of the view
			m_draftView.RootBox.MakeSimpleSel(true, true, false, true);
		}
Пример #2
0
        /// -----------------------------------------------------------------------------------
        /// <summary>
        /// Create a new draft view
        /// </summary>
        /// -----------------------------------------------------------------------------------
        public override void TestSetup()
        {
            base.TestSetup();
            m_draftForm = new DummyDraftViewForm(Cache);
            m_draftForm.DeleteRegistryKey();
            m_draftForm.CreateDraftView();

            //Application.DoEvents();
            m_draftForm.Show();
            m_draftView = m_draftForm.DraftView;
            Application.DoEvents();
        }
Пример #3
0
        public void Init()
        {
            CheckDisposed();
            m_draftForm = new DummyDraftViewForm();
            m_draftForm.DeleteRegistryKey();
            m_draftForm.CreateDraftView();

            //Application.DoEvents();
            m_draftForm.Show();
            m_draftView = m_draftForm.DraftView;
            m_cache     = m_draftForm.Cache;
            Application.DoEvents();
        }
Пример #4
0
		public void Init()
		{
			CheckDisposed();
			m_draftForm = new DummyDraftViewForm();
			m_draftForm.DeleteRegistryKey();
			m_draftForm.CreateDraftView();

			//Application.DoEvents();
			m_draftForm.Show();
			m_draftView = m_draftForm.DraftView;
			m_cache = m_draftForm.Cache;
			Application.DoEvents();
		}
Пример #5
0
        public override void Initialize()
        {
            CheckDisposed();
            base.Initialize();

            m_draftForm = new DummyDraftViewForm();
            m_draftForm.DeleteRegistryKey();
            m_draftForm.CreateDraftView(Cache);
            m_draftView        = m_draftForm.DraftView;
            m_draftView.Width  = 300;
            m_draftView.Height = 290;
            m_draftView.CallOnLayout();
        }
Пример #6
0
		public override void Initialize()
		{
			CheckDisposed();
			base.Initialize();

			m_draftForm = new DummyDraftViewForm();
			m_draftForm.DeleteRegistryKey();
			m_draftForm.CreateDraftView(Cache, true);

			m_btDraftView = m_draftForm.DraftView;
			m_btDraftView.Width = 300;
			m_btDraftView.Height = 290;
			m_btDraftView.CallOnLayout();
		}
        public override void Initialize()
        {
            CheckDisposed();
            base.Initialize();

            Assert.IsNotNull(m_draftForm == null, "m_draftForm is not null.");

            m_draftForm = new DummyDraftViewForm();
            m_draftForm.DeleteRegistryKey();
            m_draftForm.CreateDraftView(Cache);
            m_draftView        = m_draftForm.DraftView;
            m_draftView.Width  = 300;
            m_draftView.Height = 290;
            m_draftView.CallOnLayout();

            Application.DoEvents();

            m_exodus = base.CreateExodusData();
        }
		public override void Initialize()
		{
			CheckDisposed();

			// Save value of user prompt setting - restored in Cleanup.
			m_saveShowPrompts = Options.ShowEmptyParagraphPromptsSetting;
			Options.ShowEmptyParagraphPromptsSetting = false;

			base.Initialize();
			m_draftForm = new DummyDraftViewForm();
			m_draftForm.DeleteRegistryKey();
			m_draftForm.CreateDraftView(Cache);
			m_draftView = m_draftForm.DraftView;
			m_draftView.Width = 300;
			m_draftView.Height = 290;
			m_draftView.CallOnLayout();

			Application.DoEvents();
		}
Пример #9
0
		public override void Initialize()
		{
			CheckDisposed();
			base.Initialize();

			m_draftForm = new DummyDraftViewForm();
			m_draftForm.DeleteRegistryKey();
			m_draftForm.CreateDraftView(Cache, true);

			m_btDraftView = m_draftForm.DraftView;
			m_btDraftView.Width = 300;
			m_btDraftView.Height = 290;
			m_btDraftView.CallOnLayout();

			m_btDraftView.RootBox.Reconstruct(); // update the view
			// Set the selection at the start of the section
			m_btDraftView.TeEditingHelper.SetInsertionPoint(0, 0, 0, 0, false);

		}
Пример #10
0
		public override void Initialize()
		{
			CheckDisposed();
			base.Initialize();

			// Save value of user prompt setting - restored in Cleanup.
			m_saveShowPrompts = Options.ShowEmptyParagraphPromptsSetting;
			Options.ShowEmptyParagraphPromptsSetting = false;

			Debug.Assert(m_btDraftForm == null, "m_btDraftForm is not null.");
			//if (m_btDraftForm != null)
			//	m_btDraftForm.Dispose();
			m_btDraftForm = new DummyDraftViewForm();
			m_btDraftForm.DeleteRegistryKey();
			m_btDraftForm.CreateDraftView(Cache, true);
			m_btDraftForm.Show();

			m_btDraftView = m_btDraftForm.DraftView;
			m_btDraftView.Width = 300;
			m_btDraftView.Height = 290;
			m_btDraftView.CallOnLayout();
			m_scr.RestartFootnoteSequence = true;

//			Application.DoEvents();
		}
Пример #11
0
		public override void Initialize()
		{
			CheckDisposed();
			base.Initialize();

			Debug.Assert(m_draftForm == null, "m_draftForm os not null.");
			//if (m_draftForm != null)
			//	m_draftForm.Dispose();

			m_draftForm = new DummyDraftViewForm();
			m_draftForm.DeleteRegistryKey();
			m_draftForm.CreateDraftView(Cache);
			//m_draftForm.Show();
			m_draftView = m_draftForm.DraftView;
			m_draftView.Width = 300;
			m_draftView.Height = 290;
			m_draftView.CallOnLayout();

			Application.DoEvents();
		}
Пример #12
0
        /// -----------------------------------------------------------------------------------
        /// <summary>
        /// Create a new draft view
        /// </summary>
        /// -----------------------------------------------------------------------------------
        public override void TestSetup()
        {
            base.TestSetup();
            m_draftForm = new DummyDraftViewForm(Cache);
            m_draftForm.DeleteRegistryKey();
            m_draftForm.CreateDraftView();

            //Application.DoEvents();
            m_draftForm.Show();
            m_draftView = m_draftForm.DraftView;
            Application.DoEvents();
        }
Пример #13
0
		public override void Initialize()
		{
			CheckDisposed();
			base.Initialize();

			Assert.IsNotNull(m_draftForm == null, "m_draftForm is not null.");

			m_draftForm = new DummyDraftViewForm();
			m_draftForm.DeleteRegistryKey();
			m_draftForm.CreateDraftView(Cache);
			m_draftView = m_draftForm.DraftView;
			m_draftView.Width = 300;
			m_draftView.Height = 290;
			m_draftView.CallOnLayout();

			Application.DoEvents();

			m_exodus = base.CreateExodusData();
		}