//===================================================================== /// <summary> /// This handles the Perform Spell Check event /// </summary> /// <param name="sender">The sender of the event</param> /// <param name="e">The event arguments</param> private void editor_PerformSpellCheck(object sender, EventArgs e) { SpellCheckWindow spellCheckWindow = null; foreach (IDockContent content in this.DockPanel.Contents) { spellCheckWindow = content as SpellCheckWindow; if (spellCheckWindow != null) { break; } } if (spellCheckWindow != null) { spellCheckWindow.Activate(); } else { spellCheckWindow = new SpellCheckWindow(); spellCheckWindow.Show(this.DockPanel); } }
//===================================================================== /// <summary> /// This handles the Perform Spell Check event /// </summary> /// <param name="sender">The sender of the event</param> /// <param name="e">The event arguments</param> private void editor_PerformSpellCheck(object sender, EventArgs e) { SpellCheckWindow spellCheckWindow = null; foreach(IDockContent content in this.DockPanel.Contents) { spellCheckWindow = content as SpellCheckWindow; if(spellCheckWindow != null) break; } if(spellCheckWindow != null) spellCheckWindow.Activate(); else { spellCheckWindow = new SpellCheckWindow(); spellCheckWindow.Show(this.DockPanel); } }