public static CreateRule ( string find, string replace ) : string | ||
find | string | |
replace | string | |
Результат | string |
public static string CreateRule(string find, string replace)
{
return CreateRule(find, replace, "<enter a name>");
}
RegExTypoFix::CreateRule ( string find, string replace, string name ) : string |
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)); }