Inheritance: System.Windows.Forms.ListViewItem
Beispiel #1
0
        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);
        }
Beispiel #3
0
        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());
            }
        }