예제 #1
0
        private void powrot_Click(object sender, EventArgs e)
        {
            this.Hide();
            MyPaint g1 = new MyPaint();

            g1.ShowDialog();
        }
예제 #2
0
        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();
        }