Exemplo n.º 1
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Set up the test form.
        /// </summary>
        /// <param name="display"></param>
        /// ------------------------------------------------------------------------------------
        protected virtual void ShowForm(DummyBasicViewVc.DisplayType display)
        {
            // TODO-Linux: This value works better, given mono differences. Possibly look into this further.
            int height = Platform.IsMono ? 300 : 307 - 25;

            ShowForm(display, height);
        }
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Insert the specified paragraphs and show the dialog
        /// </summary>
        /// <param name="lng">Language</param>
        /// <param name="display"></param>
        /// ------------------------------------------------------------------------------------
        protected void ShowForm(Lng lng, DummyBasicViewVc.DisplayType display)
        {
            if ((lng & Lng.English) == Lng.English)
            {
                MakeEnglishParagraphs();
            }
            if ((lng & Lng.French) == Lng.French)
            {
                MakeFrenchParagraphs();
            }
            if ((lng & Lng.UserWs) == Lng.UserWs)
            {
                MakeUserWsParagraphs();
            }
            if ((lng & Lng.Empty) == Lng.Empty)
            {
                MakeEmptyParagraphs();
            }
            if ((lng & Lng.Mixed) == Lng.Mixed)
            {
                MakeMixedWsParagraph();
            }

            base.ShowForm(display);
        }
Exemplo n.º 3
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Set up the test form.
        /// </summary>
        /// <param name="display"></param>
        /// ------------------------------------------------------------------------------------
        protected virtual void ShowForm(DummyBasicViewVc.DisplayType display)
        {
#if !__MonoCS__
            int height = 307 - 25;
#else
            // TODO-Linux: This value works better, given mono differences. Possibly look into this further.
            int height = 300;
#endif
            ShowForm(display, height);
        }
Exemplo n.º 4
0
        /// ------------------------------------------------------------------------------------
        /// <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();
        }
Exemplo n.º 5
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Insert the specified paragraphs and show the dialog
 /// </summary>
 /// <param name="lng">Language</param>
 /// <param name="display"></param>
 /// ------------------------------------------------------------------------------------
 protected void ShowForm(Lng lng, DummyBasicViewVc.DisplayType display)
 {
     MakeParagraphs(lng);
     base.ShowForm(display);
 }