private void miCopyFind_Click(object sender, EventArgs e) { TypoStatsListViewItem typo = SelectedItem; if (typo == null) { return; } Tools.CopyToClipboard(typo.Typo.Find); }
void miCopyReplace_Click(object sender, EventArgs e) { TypoStatsListViewItem typo = SelectedItem; if (typo == null) { return; } Tools.CopyToClipboard(typo.Typo.Replace); }
private void TestRegex(object sender, EventArgs e) { TypoStatsListViewItem typo = SelectedItem; if (typo == null) { return; } using (RegexTester t = new RegexTester()) { t.Find = typo.Typo.Find; t.Replace = typo.Typo.Replace; if (Variables.MainForm != null && Variables.MainForm.EditBox.Enabled) { t.ArticleText = Variables.MainForm.EditBox.Text; } t.ShowDialog(FindForm()); } }