1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
5
using System.Text.RegularExpressions;
6
using System.Windows.Forms;
8
using ICSharpCode.SharpDevelop.Gui.XmlForms;
10
namespace Plugins.RegExpTk {
12
public class GroupForm : BaseSharpDevelopForm
14
public GroupForm(Match match)
16
SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("Resources.RegExpTkGroupForm.xfrm"));
18
ListView groupsListView = (ListView)ControlDictionary["GroupsListView"];
19
((Button)ControlDictionary["CloseButton"]).Click += new EventHandler(CloseButton_Click);
20
foreach(Group group in match.Groups)
22
ListViewItem groupItem = groupsListView.Items.Add(group.Value);
23
groupItem.SubItems.Add(group.Index.ToString());
24
groupItem.SubItems.Add((group.Index + group.Length).ToString());
25
groupItem.SubItems.Add(group.Length.ToString());
29
void CloseButton_Click(object sender, EventArgs e)