Esempio n. 1
0
        private void stretchToolStripMenuItem_Click(object sender, EventArgs e)
        {
            StretchWindow stretchWindow = new StretchWindow(this);

            stretchWindow.Show();
            this.Close();
        }
Esempio n. 2
0
// ######################################## Stretch ###########################################################################
        private void StretchButton_Click(object sender, EventArgs e)
        {
            if (bitmap != null)
            {
                StretchWindow stretchWindow = new StretchWindow((Bitmap)PictureBox.Image, this.panel)
                {
                    TopLevel = false
                };
                stretchWindow.Text = this.Text;
                panel.Controls.Add(stretchWindow);
                stretchWindow.Show();
                this.Close();
            }
        }