private void BooksFormToolStripMenuItem_Click(object sender, EventArgs e) { BooksForm f = new BooksForm(items, this); f.MdiParent = this; f.FormClosing += ChildFormClosing; views.Add(f); f.Show(); LayoutMdi(MdiLayout.TileVertical); }
private void MainForm_Load(object sender, EventArgs e) { BooksForm f = new BooksForm(items, this); f.MdiParent = this; f.FormClosing += ChildFormClosing; views.Add(f); f.Show(); LayoutMdi(MdiLayout.TileVertical); }