Пример #1
0
        private void Config_Click(object sender, EventArgs e)
        {
            frmSearchParams dlg = new frmSearchParams("Hightlight settings for [" + Path.GetFileName(filename) + "]",
                                                      searchParams);

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                dlg.GetConfig(searchParams);
                SelectAll();
                SelectionBackColor = Color.White;
                SelectionFont      = new Font(Font, FontStyle.Regular);
                HighlightSearchTerms(0);
            }
        }
Пример #2
0
 private void Config_Click(object sender, EventArgs e)
 {
   frmSearchParams dlg = new frmSearchParams("Hightlight settings for [" + Path.GetFileName(filename) + "]",
                                             searchParams);
   if (dlg.ShowDialog() == DialogResult.OK)
   {
     dlg.GetConfig(searchParams);
     SelectAll();
     SelectionBackColor = Color.White;
     SelectionFont = new Font(Font, FontStyle.Regular);
     HighlightSearchTerms(0);
   }
 }