public VideoKeyframesWindow(MainForm mainForm, VideoKeyframesManager videoKeyframesManager,
                                    DefaultCodecHeaderManager defaultCodecHeaderManager)
        {
            _mainForm = mainForm;
            _videoKeyframesManager     = videoKeyframesManager;
            _defaultCodecHeaderManager = defaultCodecHeaderManager;
            InitializeComponent();
            UpdateTitle();

            textBoxMaxNumThumbs.Text = _videoKeyframesManager.MaxThumbs.ToString();
        }
Ejemplo n.º 2
0
        public HeaderPanel(FramePreviewManager framePreviewManager, VideoKeyframesManager videoKeyframesManager,
                           HeaderTree headerTree, HeaderDetailTree headerDetailTree, ColumnChooser columnChooser)
        {
            _framePreviewManager   = framePreviewManager;
            _videoKeyframesManager = videoKeyframesManager;
            this.headerTree        = headerTree;
            this.headerDetailTree  = headerDetailTree;
            this.columnChooser     = columnChooser;

            columnChooser.HeaderPanel = this;

            InitializeComponent();

            // Add/replace custom menu items in original header context menu
            headerTree.HeaderContextMenu.Items.RemoveAt(headerTree.HeaderContextMenu.Items.Count - 1);
            headerTree.HeaderContextMenu.Items.Add(toolStripMenuItemColumnChooser);
            headerTree.HeaderContextMenu.Items.Add(toolStripMenuItemRemoveColumn);
            headerTree.HeaderContextMenu.Opening += new CancelEventHandler(headerTree_HeaderContextMenu_Opening);

            headerTree_SelectionChanged(this, EventArgs.Empty);
        }