private void createRetfRuleToolStripMenuItem_Click(object sender, EventArgs e)
{
DataGridViewRow row = dataGridView1.CurrentRow;
if (row == null)
{
return;
}
string typoName = (string)row.Cells["Comment"].Value;
if (string.IsNullOrEmpty(typoName))
{
typoName = "<enter a name>";
}
Tools.CopyToClipboard(RegExTypoFix.CreateRule((string)row.Cells["find"].Value, (string)row.Cells["replace"].Value, typoName));
}