private void CommandReplace(object sender, ExecutedRoutedEventArgs e)
{
if (this.findAndReplaceWindow == null)
{
this.findAndReplaceWindow = new FindAndReplace(this);
this.findAndReplaceWindow.Owner = this;
}
if (this.findAndReplaceWindow.IsVisible)
{
this.findAndReplaceWindow.Hide();
this.Editor.Focus();
}
else
{
this.findAndReplaceWindow.Show();
this.findAndReplaceWindow.Focus();
}
}