예제 #1
0
        private void menu_OutputImage_Size_Click(object sender, EventArgs e)
        {
            ToolStripMenuItem c = sender as ToolStripMenuItem;
            string            tag;

            tag = c.Tag.ToString();

            if (tag == "other")
            {
                // Show FormOutputImageSettings
                menu_OutputImag_Settings_Click(null, null);
            }
            else
            {
                ImageAnalyzerObject.OutputImageZoom = int.Parse(tag);

                // 'Check' clicked menu item
                UpdateOutputImageMenuUI();

                // Redraw output image
                if (ImageAnalyzerObject.Output != null)
                {
                    ImageAnalyzerObject.RedrawOutput();
                    picOutput.Image         = ImageAnalyzerObject.Output;
                    lblOutputImageZoom.Text = tag + "  برابر";
                }
            }
        }
예제 #2
0
        private void menu_OutputImage_ShowSubGrid_Click(object sender, EventArgs e)
        {
            ImageAnalyzerObject.Grid.ShowSubGrid = menu_OutputImage_ShowSubGrid.Checked;

            if (ImageAnalyzerObject.Output != null)
            {
                ImageAnalyzerObject.RedrawOutput();
                picOutput.Image = ImageAnalyzerObject.Output;
                DocumentObject.IsDocumentChanged = true;
            }
        }