Пример #1
0
        private void brightnessToolStripMenuItem_Click(object sender, EventArgs e)
        {
            brightnessFrm bFrm = new WindowsFormsApplication1.brightnessFrm();

            bFrm.SetImgFactory(imageFactory);
            bFrm.Show();
            bFrm.FormClosed += new FormClosedEventHandler(brightnessFrmClosed);
        }
Пример #2
0
        void brightnessFrmClosed(object sender, FormClosedEventArgs e)
        {
            brightnessFrm bForm = (brightnessFrm)sender;

            pictureBox.Image = imageFactory.Image;
        }