private void replacebutton_Click(object sender, RoutedEventArgs e)
{
if (_ow == null) return;
bool foundanother = true;
string replacetext = replacetxt.Text != null ? replacetxt.Text : string.Empty; ;
string findtext = findtxt.Text != null ? findtxt.Text : string.Empty;
foundanother = _ow.ReplaceWith(findtext, replacetext);
if (!foundanother)
{
MessageBox.Show(this,"No more to replace.");
}
}