Ejemplo n.º 1
0
        private void removeEditor()
        {
            RegularExpressionEditor toRemove = this.regexEditors.OrderBy(x => x.Index).Last();

            this.splitContainer3.Panel1.Controls.Remove(toRemove);
            this.regexEditors.Remove(toRemove);
            toRemove.Dispose();
        }
Ejemplo n.º 2
0
        private RegularExpressionEditor createEditor()
        {
            int i = this.regexEditors.Count;
            RegularExpressionEditor rexedit = new RegularExpressionEditor();

            rexedit.Location = new Point(3, 3 + i * 28);
            rexedit.Size     = new Size(splitContainer3.Panel1.ClientSize.Width - 31, 22);
            rexedit.Index    = i + 1;
            splitContainer3.Panel1.Controls.Add(rexedit);
            regexEditors.Add(rexedit);
            return(rexedit);
        }