/// ------------------------------------------------------------------------------------ /// <summary> /// Insert the specified paragraphs and show the dialog /// </summary> /// <param name="lng">Language</param> /// <param name="display"></param> /// ------------------------------------------------------------------------------------ protected void ShowForm(Lng lng, SimpleViewVc.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(); } ShowForm(display); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Set up the test form. /// </summary> /// <param name="display"></param> /// ------------------------------------------------------------------------------------ protected void ShowForm(SimpleViewVc.DisplayType display) { 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, SimpleRootsiteTestsConstants.kflidDocFootnotes, m_frag, m_wsEng); m_basicView.CallLayout(); m_basicView.AutoScrollPosition = new Point(0, 0); }