private cEditor createEditor()
{
TabPage tab = new TabPage();
Panel pnEditor = new Panel();
PictureBox pnRule = new PictureBox();
PictureBox pnReport = new PictureBox();
pnEditor.Controls.Add(pnRule);
pnEditor.Controls.Add(pnReport);
tab.Controls.Add(pnEditor);
pnEditor.Dock = DockStyle.Fill;
tabReports.TabPages.Add(tab);
tab.Text = "New Report [X]";
return new cEditor(this, pnEditor, pnRule, pnReport, tab);
}