Beispiel #1
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Insert the specified paragraphs and show the dialog
        /// </summary>
        /// ------------------------------------------------------------------------------------
        protected void ShowForm()
        {
            m_basicView.DisplayType = DummyBasicViewVc.DisplayType.kBookTitle;
            // m_basicView.MakeEnglishParagraphs();

            // We don't actually want to show it, but we need to force the view to create the root
            // box and lay it out so that various test stuff can happen properly.
            m_basicView.Width  = 300;
            m_basicView.Height = 307 - 25;
            m_basicView.MakeRoot(m_scr.ScriptureBooksOS[0].Hvo, ScrBookTags.kflidTitle);
            m_basicView.CallLayout();
        }
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Insert the specified paragraphs and show the dialog
        /// </summary>
        /// ------------------------------------------------------------------------------------
        protected void ShowForm()
        {
            m_basicView.DisplayType = DummyBasicViewVc.DisplayType.kAll;
            m_basicView.MakeEnglishParagraphs();

            // We don't actually want to show it, but we need to force the view to create the root
            // box and lay it out so that various test stuff can happen properly.
            m_basicView.Width  = 300;
            m_basicView.Height = 307 - 25;
            m_basicView.MakeRoot();
            m_basicView.CallLayout();
        }
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Set up the test form.
        /// </summary>
        /// <param name="display"></param>
        /// ------------------------------------------------------------------------------------
        protected virtual void ShowForm(DummyBasicViewVc.DisplayType display)
        {
            Assert.IsTrue(m_flidContainingTexts != 0, "Need to initialize m_flidContainingTexts");

            m_basicView.DisplayType = display;

            // We don't actually want to show it, but we need to force the view to create the root
            // box and lay it out so that various test stuff can happen properly.
            m_basicView.Width  = 300;
            m_basicView.Height = 307 - 25;
            m_basicView.MakeRoot(m_hvoRoot, m_flidContainingTexts, m_frag);
            m_basicView.CallLayout();
        }