private void m_timer_Tick(object sender, EventArgs e) { if (m_parserListener == null) { return; } m_statusLabel.Text = m_parserListener.ParserActivityString; if (m_parserListener.Connection == null) { m_statusLabel.Text = ParserStoppedMessage(); return; } Exception ex = m_parserListener.Connection.UnhandledException; if (ex != null) { m_parserListener.DisconnectFromParser(); m_statusLabel.Text = ParserStoppedMessage(); m_tryItButton.Enabled = true; var app = PropTable.GetValue <IApp>("App"); ErrorReporter.ReportException(ex, app.SettingsKey, app.SupportEmailAddress, this, false); return; } if (m_tryAWordResult != null && m_tryAWordResult.IsCompleted) { var result = (XDocument)m_tryAWordResult.AsyncState; CreateResultPage(result); m_tryAWordResult = null; // got result so enable Try It button m_tryItButton.Enabled = true; } }
private void GetLastWordUsed() { var word = PropTable.GetValue <string>("TryAWordDlg-lastWordToTry"); if (word != null) { SetWordToUse(word.Trim()); } }
private void m_tree_TreeLoad(object sender, EventArgs e) { if (m_pOSPopupTreeManager == null) { m_pOSPopupTreeManager = new POSPopupTreeManager(m_tree, m_cache, List, m_cache.ServiceLocator.WritingSystems.DefaultAnalysisWritingSystem.Handle, false, m_mediator, PropTable, PropTable.GetValue <Form>("window")); m_pOSPopupTreeManager.AfterSelect += m_pOSPopupTreeManager_AfterSelect; } m_pOSPopupTreeManager.LoadPopupTree(0); }
private void m_tree_TreeLoad(object sender, EventArgs e) { if (m_InflectionFeatureTreeManager == null) { m_InflectionFeatureTreeManager = new InflectionFeaturePopupTreeManager(m_tree, m_cache, false, m_mediator, PropTable, PropTable.GetValue <Form>("window"), m_displayWs); m_InflectionFeatureTreeManager.AfterSelect += new TreeViewEventHandler(m_pOSPopupTreeManager_AfterSelect); } m_InflectionFeatureTreeManager.LoadPopupTree(0); }
private void m_buttonHelp_Click(object sender, EventArgs e) { ShowHelp.ShowHelpTopic(PropTable.GetValue <IHelpTopicProvider>("HelpTopicProvider"), HelpTopicID); }
private void m_tree_TreeLoad(object sender, EventArgs e) { if (m_PhonologicalFeatureTreeManager == null) { if (!String.IsNullOrEmpty(m_featDefnAbbr)) { // Find the feature definition this editor was created to choose options from var featDefns = from s in m_cache.LangProject.PhFeatureSystemOA.FeaturesOC where s.Abbreviation.BestAnalysisAlternative.Text == m_featDefnAbbr select s; if (featDefns.Any()) { m_closedFeature = featDefns.First() as IFsClosedFeature; } } m_PhonologicalFeatureTreeManager = new PhonologicalFeaturePopupTreeManager(m_tree, m_cache, false, m_mediator, PropTable, PropTable.GetValue <Form>("window"), m_displayWs, m_closedFeature); m_PhonologicalFeatureTreeManager.AfterSelect += new TreeViewEventHandler(m_PhonFeaturePopupTreeManager_AfterSelect); } m_PhonologicalFeatureTreeManager.LoadPopupTree(0); }