private void GenerateSlideButton_Click(object sender, EventArgs e) { var rng = new Random(); if (imageChosen == false) { System.Windows.MessageBox.Show("Must chose a Background, Click on a Background"); } else { int randomSlide = rng.Next(1, 3); if (randomSlide == 1) { Slide1 slide1 = new Slide1(); slide1.Show(); } else if (randomSlide == 2) { Slide2 slide2 = new Slide2(); slide2.Show(); } else if (randomSlide == 3) { Slide3 slide3 = new Slide3(); slide3.Show(); } this.Close(); } }
private void slide3ToolStripToolStripMenuItem_Click(object sender, EventArgs e) { Slide3 newMDIChild = new Slide3(); newMDIChild.MdiParent = this; newMDIChild.Show(); }