internal AdvancedMTDialog(LcmCache cache, bool fPrepose, CChartSentenceElements ccSentElem, IHelpTopicProvider helpTopicProvidor) { InitializeComponent(); SuspendLayout(); m_helpTopicProvider = helpTopicProvidor; if (m_helpTopicProvider != null) { helpProvider.HelpNamespace = m_helpTopicProvider.HelpFile; helpProvider.SetHelpNavigator(this, HelpNavigator.Topic); helpProvider.SetHelpKeyword(this, m_helpTopicProvider.GetHelpString(s_helpTopic)); helpProvider.SetShowHelp(this, true); } m_AMTDLogic = new AdvancedMTDialogLogic(cache, fPrepose, ccSentElem); m_bottomStuff.SuspendLayout(); m_bottomStuff.Controls.AddRange(new Control[] { m_AMTDLogic.DlgRibbon }); m_bottomStuff.ResumeLayout(); // Setup localized dialog SetCaption(fPrepose ? DiscourseStrings.ksAdvDlgPreposeCaption : DiscourseStrings.ksAdvDlgPostposeCaption); SetMainText(fPrepose ? DiscourseStrings.ksAdvDlgMainPreText : DiscourseStrings.ksAdvDlgMainPostText); SetPartialText(fPrepose ? DiscourseStrings.ksAdvDlgPartialPre : DiscourseStrings.ksAdvDlgPartialPost); ResumeLayout(); InitLogicAndDialog(); }
internal AdvancedMTDialog(FdoCache cache, bool fPrepose, CChartSentenceElements ccSentElem, IHelpTopicProvider helpTopicProvidor) { InitializeComponent(); SuspendLayout(); m_helpTopicProvider = helpTopicProvidor; if (m_helpTopicProvider != null) { helpProvider.HelpNamespace = m_helpTopicProvider.HelpFile; helpProvider.SetHelpNavigator(this, HelpNavigator.Topic); helpProvider.SetHelpKeyword(this, m_helpTopicProvider.GetHelpString(s_helpTopic)); helpProvider.SetShowHelp(this, true); } m_AMTDLogic = new AdvancedMTDialogLogic(cache, fPrepose, ccSentElem); m_bottomStuff.SuspendLayout(); m_bottomStuff.Controls.AddRange(new Control[] { m_AMTDLogic.DlgRibbon }); m_bottomStuff.ResumeLayout(); // Setup localized dialog SetCaption(fPrepose ? DiscourseStrings.ksAdvDlgPreposeCaption : DiscourseStrings.ksAdvDlgPostposeCaption); SetMainText(fPrepose ? DiscourseStrings.ksAdvDlgMainPreText : DiscourseStrings.ksAdvDlgMainPostText); SetPartialText(fPrepose ? DiscourseStrings.ksAdvDlgPartialPre : DiscourseStrings.ksAdvDlgPartialPost); ResumeLayout(); InitLogicAndDialog(); }
protected override void CreateTestData() { base.CreateTestData(); m_cclogic = new TestCCLogic(Cache, m_chart, m_stText); m_cclogic.Ribbon = m_mockRibbon = new MockRibbon(Cache, m_stText.Hvo); m_helper.Logic = m_cclogic; m_template = m_helper.MakeTemplate(out m_allColumns); // Note: do this AFTER creating the template, which may also create the DiscourseData object. m_chart = m_helper.SetupAChart(); m_origCell = null; // Test must fill in the ClickedCell in the CChartSentenceElements object m_eligCols = m_allColumns.ToArray(); // CChartSentenceElements always starts with all columns m_eligRows = null; // Test must fill in EligibleRows in the CChartSentenceElements object m_sentElem = new CChartSentenceElements(m_origCell, m_eligRows, m_eligCols); m_dlgLogicPrepose = new AdvancedMTDialogLogic(Cache, true, m_sentElem); m_dlgLogicPostpose = new AdvancedMTDialogLogic(Cache, false, m_sentElem); // create one each direction; test both }
internal AdvancedMTDialog(FdoCache cache, bool fPrepose, CChartSentenceElements ccSentElem) { InitializeComponent(); this.SuspendLayout(); m_AMTDLogic = new AdvancedMTDialogLogic(cache, fPrepose, ccSentElem); m_bottomStuff.SuspendLayout(); m_bottomStuff.Controls.AddRange(new Control[] { m_AMTDLogic.DlgRibbon }); m_bottomStuff.ResumeLayout(); // Setup localized dialog SetCaption(fPrepose ? DiscourseStrings.ksAdvDlgPreposeCaption : DiscourseStrings.ksAdvDlgPostposeCaption); SetMainText(fPrepose ? DiscourseStrings.ksAdvDlgMainPreText : DiscourseStrings.ksAdvDlgMainPostText); SetPartialText(fPrepose ? DiscourseStrings.ksAdvDlgPartialPre : DiscourseStrings.ksAdvDlgPartialPost); this.ResumeLayout(); InitLogicAndDialog(); }