private void consistentSpellingFixerToolStripMenuItem_Click(object sender, EventArgs e) { m_aSpellFixerLegacy = null; // just in case TrySelectProject(); }
private void resetToolStripMenuItem_Click(object sender, EventArgs e) { m_aCscProject = null; m_aSpellFixerLegacy = null; }
protected bool TryLoginProject() { try { if (m_aSpellFixerLegacy == null) m_aSpellFixerLegacy = new SpellingFixer30.SpellingFixer(); m_aSpellFixerLegacy.LoginProject(); } catch (Exception ex) { MessageBox.Show(ex.Message, cstrCaption); return false; } finally { m_aCscProject = null; // just in case } return true; }
protected void QuerySpellFixProject() { bool bCscProject = false; try { if (m_aSpellFixerLegacy == null) m_aSpellFixerLegacy = new SpellingFixer30.SpellingFixer(); if (m_aSpellFixerLegacy.QuerySpellFixProject() == SpellFixerMode.eConsistentSpellingChecker) { bCscProject = TrySelectProject(); } else legacySpellFixerToolStripMenuItem_Click(null, null); } catch (Exception ex) { MessageBox.Show(ex.Message, cstrCaption); } finally { if (bCscProject) m_aSpellFixerLegacy = null; // just in case } }
protected bool TrySelectProject() { try { m_aCscProject = CscProject.SelectProject(); } catch (Exception ex) { MessageBox.Show(ex.Message, cstrCaption); return false; } finally { m_aSpellFixerLegacy = null; // just in case } return true; }