private void buttonAddSpellFixer_Click(object sender, EventArgs e) { try { SpellFixerByReflection aSF = new SpellFixerByReflection(); aSF.LoginProject(); ((EncConverters)m_aECs).Reinitialize(); FriendlyName = aSF.SpellFixerEncConverterName; m_aEC = m_aECs[FriendlyName]; if (m_aEC != null) { textBoxFileSpec.Text = ConverterIdentifier = m_aEC.ConverterIdentifier; ConversionType = m_aEC.ConversionType; ProcessType = m_aEC.ProcessType; UpdateUI(false); aSF.QueryForSpellingCorrectionIfTableEmpty("incorect"); aSF.EditSpellingFixes(); IsInRepository = true; } } catch (Exception) { // usually just a "no project selected message, so .... ignoring it // MessageBox.Show(ex.Message, EncConverters.cstrCaption); } }
private void buttonAddSpellFixer_Click(object sender, EventArgs e) { try { SpellFixerByReflection aSF = new SpellFixerByReflection(); aSF.LoginProject(); ((EncConverters)m_aECs).Reinitialize(); FriendlyName = aSF.SpellFixerEncConverterName; m_aEC = m_aECs[FriendlyName]; if (m_aEC != null) { textBoxFileSpec.Text = ConverterIdentifier = m_aEC.ConverterIdentifier; ConversionType = m_aEC.ConversionType; ProcessType = m_aEC.ProcessType; UpdateUI(false); aSF.QueryForSpellingCorrectionIfTableEmpty("incorect"); aSF.EditSpellingFixes(); IsInRepository = true; } } catch (Exception) { // usually just a "no project selected message, so .... ignoring it // MessageBox.Show(ex.Message, EncConverters.cstrCaption); } }