private void powrot_Click(object sender, EventArgs e) { this.Hide(); MyPaint g1 = new MyPaint(); g1.ShowDialog(); }
public void ladowanie_Click(object sender, EventArgs e) { Image selectedImge = pictureBox1.Image; this.Hide(); MyPaint g1 = new MyPaint(); if (!czyPuste) { Bitmap oldbm = g1.bm; g1.bm = new Bitmap(selectedImge); oldbm.Dispose(); g1.pictureBox.Image = g1.bm; g1.czyotwarte = true; g1.pictureBox.SizeMode = PictureBoxSizeMode.AutoSize; } g1.ShowDialog(); }