Пример #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();
        }
Пример #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();
        }
Пример #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();
        }
Пример #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();
        }