Esempio n. 1
0
        // Show histogram window
        private void showhistogramToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (histogramForm == null)
            {
                histogramForm              = new HistogramForm( );
                histogramForm.FormClosing += delegate(object eventSender, FormClosingEventArgs eventArgs)
                {
                    histogramForm = null;
                };
            }

            histogramForm.Show( );
            ShowCurrentImageHistogram( );
        }
Esempio n. 2
0
        // Show histogram window
        private void showhistogramToolStripMenuItem_Click( object sender, EventArgs e )
        {
            if ( histogramForm == null )
            {
                histogramForm = new HistogramForm( );
                histogramForm.FormClosing += delegate( object eventSender, FormClosingEventArgs eventArgs )
                {
                    histogramForm = null;
                };
            }

            histogramForm.Show( );
            ShowCurrentImageHistogram( );
        }