Beispiel #1
0
        // lab 2
        private void fileToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PictureWindow pictureWindow = new PictureWindow(pContainer)
            {
                TopLevel = false
            };

            pContainer.Controls.Add(pictureWindow);
            pictureWindow.Show();
        }
Beispiel #2
0
        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();
        }
Beispiel #3
0
// ######################################## 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();
        }
Beispiel #4
0
        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();
        }