Exemplo n.º 1
0
 private void toolStripMenuItemAddCaptureGroup_Click(object sender, EventArgs e)
 {
     using (AddRegexCaptureGroup dlg = new AddRegexCaptureGroup())
     {
         if (dlg.ShowDialog(this) == DialogResult.OK)
         {
             textBox1.AppendText("(<" + dlg.CaptureGroupName + ">:" + dlg.RegularExpression + ")");
         }
     }
 }
 private void toolStripMenuItemAddCaptureGroup_Click(object sender, EventArgs e)
 {
     using (AddRegexCaptureGroup dlg = new AddRegexCaptureGroup())
     {
         if (dlg.ShowDialog(this) == DialogResult.OK)
         {
             textBox1.AppendText("(<" + dlg.CaptureGroupName + ">:" + dlg.RegularExpression + ")");
         }
     }
 }