public frmContainer() { InitializeComponent(); counter = 1; frmEditor editor = new frmEditor(this, counter); editor.Show(); }
private void newToolStripMenuItem_Click(object sender, EventArgs e) { frmEditor newForm = new frmEditor(this, ++counter); newForm.Show(); }