/// ------------------------------------------------------------------------------------ /// <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); }
/// ------------------------------------------------------------------------------------ /// <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); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Set up the test form. /// </summary> /// <param name="display"></param> /// <param name="height"></param> /// ------------------------------------------------------------------------------------ protected virtual void ShowForm(DummyBasicViewVc.DisplayType display, int height) { 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 = height; m_basicView.MakeRoot(m_hvoRoot, m_flidContainingTexts, m_frag); m_basicView.CallLayout(); }
/// ------------------------------------------------------------------------------------ /// <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); }