// lab 2 private void fileToolStripMenuItem_Click(object sender, EventArgs e) { PictureWindow pictureWindow = new PictureWindow(pContainer) { TopLevel = false }; pContainer.Controls.Add(pictureWindow); pictureWindow.Show(); }
private void DoneButton_Click(object sender, EventArgs e) { PictureWindow window = new PictureWindow((Bitmap)StretchWindowPictureBox.Image, panel) { TopLevel = false }; panel.Controls.Add(window); window.Show(); this.Close(); }
// ######################################## Duplicate ########################################################################### private void DuplicateMenuStripItem_Click(object sender, EventArgs e) { PictureWindow pictureWindow = new PictureWindow((Bitmap)PictureBox.Image, panel) { TopLevel = false }; pictureWindow.Size = this.Size; panel.Controls.Add(pictureWindow); pictureWindow.Show(); }
private void doneToolStripMenuItem_Click(object sender, EventArgs e) { PictureWindow pictureWindow = new PictureWindow((Bitmap)PictureBox.Image, this.panel) { TopLevel = false }; panel.Controls.Add(panel); pictureWindow.Show(); this.Close(); }