public ImagePreviewContextMenu(CoreLib core, Options options, CoreOptions coreOptions, ImagePreviewPanel imagePreviewPanel, ResultsListView resultsListView)
 {
     m_core              = core;
     m_options           = options;
     m_coreOptions       = coreOptions;
     m_imagePreviewPanel = imagePreviewPanel;
     m_resultsListView   = resultsListView;
     InitializeComponents();
     UpdateStrings();
     Resources.Strings.OnCurrentChange += new Resources.Strings.CurrentChangeHandler(UpdateStrings);
     Opening += new CancelEventHandler(OnOpening);
 }
Beispiel #2
0
        private void InitializeComponents()
        {
            m_firstImagePreviewPanel  = new ImagePreviewPanel(m_core, m_options, m_resultsListView, ImagePreviewPanel.Position.Top);
            m_secondImagePreviewPanel = new ImagePreviewPanel(m_core, m_options, m_resultsListView, ImagePreviewPanel.Position.Bottom);

            m_deleteFirstButton         = InitFactory.ToolButton.Create("DeleteFirstVerticalButton", CoreDll.LocalActionType.DeleteFirst, OnButtonClicked);
            m_deleteSecondButton        = InitFactory.ToolButton.Create("DeleteSecondVerticalButton", CoreDll.LocalActionType.DeleteSecond, OnButtonClicked);
            m_deleteBothButton          = InitFactory.ToolButton.Create("DeleteBothVerticalButton", CoreDll.LocalActionType.DeleteBoth, OnButtonClicked);
            m_renameFirstToSecondButton = InitFactory.ToolButton.Create("RenameFirstToSecondVerticalButton", CoreDll.LocalActionType.RenameFirstToSecond, OnButtonClicked);
            m_renameSecondToFirstButton = InitFactory.ToolButton.Create("RenameSecondToFirstVerticalButton", CoreDll.LocalActionType.RenameSecondToFirst, OnButtonClicked);
            m_mistakeButton             = InitFactory.ToolButton.Create("MistakeButton", CoreDll.LocalActionType.Mistake, OnButtonClicked);
            m_openBothFoldersButton     = InitFactory.ToolButton.Create("OpenBothFoldersButton.png", null, OnOpenBothFoldersButtonClicked);
            m_openBothImagesButton      = InitFactory.ToolButton.Create("OpenBothImagesButton.png", null, OnOpenBothImagesButtonClicked);

            /* m_difrentNumericUpDown = new System.Windows.Forms.NumericUpDown();
             * m_difrentNumericUpDown.Size = new System.Drawing.Size(62, 17);
             * m_difrentNumericUpDown.Location = new System.Drawing.Point(102, 0);
             * m_difrentNumericUpDown.Margin = new Padding(0);
             * m_difrentNumericUpDown.DecimalPlaces = 2;
             * m_difrentNumericUpDown.Increment = new decimal(new int[] { 1, 0, 0, 65536 });
             * m_difrentNumericUpDown.Minimum = new decimal(new int[] { 0, 0, 0, 0 });
             * m_difrentNumericUpDown.Value = new decimal(m_options.resultsOptions.DiffrentThreshold);
             * m_difrentNumericUpDown.ValueChanged += new System.EventHandler(m_difrentNumericUpDown_ValueChanged);
             *
             * m_checkBoxDiffrent = new System.Windows.Forms.CheckBox();
             * m_checkBoxDiffrent.AutoSize = true;
             * //this.checkBox1.Location = new System.Drawing.Point(321, 459);
             * //this.checkBox1.Name = "checkBox1";
             * m_checkBoxDiffrent.Size = new System.Drawing.Size(80, 17);
             * //this.checkBox1.TabIndex = 6;
             * m_checkBoxDiffrent.Text = "Highlight";
             * m_checkBoxDiffrent.UseVisualStyleBackColor = true;
             * m_checkBoxDiffrent.Checked = m_options.resultsOptions.HighlightDiffrent; //TODO
             * m_checkBoxDiffrent.CheckedChanged += new System.EventHandler(checkBoxDiffrent_CheckedChanged);
             *
             * m_difrentPanel = new System.Windows.Forms.Panel();
             * m_difrentPanel.Controls.Add(m_checkBoxDiffrent);
             * m_difrentPanel.Controls.Add(m_difrentNumericUpDown);
             * //m_difrentPanel.Location = new System.Drawing.Point(225, 459);
             * //m_difrentPanel.AutoSize = true;
             * m_difrentPanel.Size = new System.Drawing.Size(200, 20);*/
        }
Beispiel #3
0
 private void InitializeComponents()
 {
     m_imagePreviewPanel = new ImagePreviewPanel(m_core, m_options, m_resultsListView, ImagePreviewPanel.Position.Top);
     m_deleteButton      = InitFactory.ToolButton.Create("DeleteDefectVerticalButton", CoreDll.LocalActionType.DeleteDefect, OnButtonClicked);
     m_mistakeButton     = InitFactory.ToolButton.Create("MistakeButton", CoreDll.LocalActionType.Mistake, OnButtonClicked);
 }