public Form1() { InitializeComponent(); pictureBox1.Image = new Bitmap(pictureBox1.Width, pictureBox1.Height); pictureBox2.Image = new Bitmap(pictureBox2.Width, pictureBox2.Height); canvas = Graphics.FromImage(pictureBox1.Image); canvas.Clear(Color.White); previewCanvas = Graphics.FromImage(pictureBox2.Image); pictureBox1.Controls.Add(pictureBox2); CircleBrushSubForm = new CircleBrushProprietiesForm(this); saveImageDialog.AddExtension = false; saveImageDialog.Filter = "Jpeg (*.jpg)|*.jpg|BMP(*.bmp)|*.bmp"; }
private void showCirclePropWindow_Click(object sender, EventArgs e) { CircleBrushSubForm = new CircleBrushProprietiesForm(this); CircleBrushSubForm.Show(); }