예제 #1
0
        public MainSplitContainer(CoreLib core, Options options, CoreOptions coreOptions, MainForm mainForm)
        {
            m_mainForm    = mainForm;
            m_options     = options;
            m_core        = core;
            m_coreOptions = coreOptions;

            m_resultsListView         = new ResultsListView(m_core, m_options, m_coreOptions, this);
            m_resultsPreviewContainer = new ResultsPreviewContainer(m_core, m_options, m_coreOptions, this);

            //m_resultsListView.UpdateResults();

            m_thumbnailGroupTable = new ThumbnailGroupTable(m_core, m_options, this);
            m_thumbnailPreview    = new ThumbnailPreview(m_core, m_options, this);
            m_thumbnailPreview.ContextMenuStrip              = new ThumbnailPreviewContextMenu(m_core, m_options, m_thumbnailPreview, m_thumbnailGroupTable);
            m_thumbnailGroupTable.OnCurrentThumbnailChanged += m_thumbnailPreview.SetThumbnail;

            //m_thumbnailGroupTable.UpdateGroups();

            InitializeComponents();

            // —в¤зываем, чтобы при вызове событи¤ OnViewModeChange вызывалась функци¤ SetViewMode
            m_options.resultsOptions.OnViewModeChange += new ResultsOptions.ViewModeChangeHandler(SetViewMode);

            SplitterMoved += new SplitterEventHandler(OnSplitterPositionChanged);
            Resize        += new EventHandler(OnSizeChanged);
        }
예제 #2
0
 public ImagePreviewPanel(CoreLib core, Options options, ResultsListView resultsListView, Position position)
 {
     m_core            = core;
     m_options         = options;
     m_resultsListView = resultsListView;
     InitializeComponents();
     SetPosition(position);
 }
예제 #3
0
        public ResultsPreviewBase(CoreLib core, Options options, CoreOptions coreOptions, ResultsListView resultsListView)
        {
            m_core            = core;
            m_options         = options;
            m_coreOptions     = coreOptions;
            m_resultsListView = resultsListView;

            InitializeComponents();
            UpdateStrings();
            Resources.Strings.OnCurrentChange += new Resources.Strings.CurrentChangeHandler(UpdateStrings);
        }
예제 #4
0
 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);
 }
예제 #5
0
        public SelectVerticalColumnsForm(ResultsListView resultsListView, Options options)
        {
            if (options.resultsOptions.viewMode != ResultsOptions.ViewMode.VerticalPairTable)
            {
                throw new Exception("Bad view mode!");
            }

            m_resultsListView  = resultsListView;
            m_options          = options;
            m_newResultOptions = new ResultsOptions(m_options.resultsOptions);
            InitializeComponents();
            UpdateStrings();
            UpdateItemsEnabling();
            GetOptions();
            m_inited = true;
        }
예제 #6
0
 public ResultsPreviewDuplPair(CoreLib core, Options options, CoreOptions coreOptions, ResultsListView resultsListView)
     : base(core, options, coreOptions, resultsListView)
 {
     InitializeComponents();
     UpdateStrings();
     Resources.Strings.OnCurrentChange += new Resources.Strings.CurrentChangeHandler(UpdateStrings);
     OnOptionsChanged();
     m_options.OnChange += new Options.ChangeHandler(OnOptionsChanged);
     m_options.resultsOptions.OnHighlightDifferenceChange += new ResultsOptions.HighlightDifferenceChangeHandler(OnHighlightDifferenceChange);
 }