Пример #1
0
 public ResultsPreviewDefect(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);
 }
 public ResultsListViewContextMenu(CoreLib core, Options options, CoreOptions coreOptions, MainSplitContainer mainSplitContainer)
 {
     m_core               = core;
     m_options            = options;
     m_coreOptions        = coreOptions;
     m_mainSplitContainer = mainSplitContainer;
     InitializeComponents();
     UpdateStrings();
     OnOptionsChanged();
 }
Пример #3
0
 public ThumbnailPanel(CoreLib core, AntiDupl.NET.Options options, CoreGroup group, int index, ThumbnailGroupPanel thumbnailGroupPanel)
 {
     m_core                = core;
     m_options             = options;
     m_group               = group;
     m_index               = index;
     m_thumbnailGroupPanel = thumbnailGroupPanel;
     InitializeComponents();
     SetImageInfo();
 }
Пример #4
0
 public CoreGroup(ref CoreDll.adGroup group, CoreLib core)
 {
     id     = group.id.ToInt32();
     images = core.GetImageInfo(id, 0, (uint)group.size);
     for (int i = 0; i < images.Length; ++i)
     {
         sizeMax.Width  = Math.Max(sizeMax.Width, (int)images[i].width);
         sizeMax.Height = Math.Max(sizeMax.Height, (int)images[i].height);
     }
 }
Пример #5
0
 public CorePathsForm(CoreLib core, Options options, CoreOptions coreOptions)
 {
     m_core           = core;
     m_options        = options;
     m_oldCoreOptions = coreOptions;
     m_newCoreOptions = m_oldCoreOptions.Clone();
     InitializeComponent();
     UpdateStrings();
     UpdatePath();
     UpdateButtonEnabling();
 }
Пример #6
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);
        }
Пример #7
0
 public ThumbnailPreviewContextMenu(CoreLib core, Options options, ThumbnailPreview thumbnailPreview, ThumbnailGroupTable thumbnailGroupTable)
 {
     m_core                = core;
     m_options             = options;
     m_thumbnailPreview    = thumbnailPreview;
     m_thumbnailGroupTable = thumbnailGroupTable;
     InitializeComponents();
     UpdateStrings();
     Resources.Strings.OnCurrentChange += new Resources.Strings.CurrentChangeHandler(UpdateStrings);
     Opening += new CancelEventHandler(OnOpening);
 }
Пример #8
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);
 }
Пример #9
0
        public void SetDefault(CoreLib core, bool onePath)
        {
            CoreOptions old = new CoreOptions();

            old.Get(core, onePath);
            core.SetDefaultOptions();
            Get(core, onePath);
            old.Set(core, onePath);

            ignorePath         = new CorePathWithSubFolder[1];
            ignorePath[0]      = new CorePathWithSubFolder();
            ignorePath[0].path = Resources.DataPath;
        }
Пример #10
0
 public SearchExecuterForm(CoreLib core, Options options, CoreOptions coreOptions, MainSplitContainer mainSplitContainer, MainForm mainForm)
 {
     m_core                = core;
     m_options             = options;
     m_coreOptions         = coreOptions;
     m_mainSplitContainer  = mainSplitContainer;
     m_mainForm            = mainForm;
     m_mainFormWindowState = m_mainForm.WindowState;
     InitializeComponent();
     UpdateStrings();
     Owner              = m_mainForm;
     m_mainForm.Resize += new EventHandler(OnMainFormResize);
 }
Пример #11
0
 public MainMenu(CoreLib core, Options options, CoreOptions coreOptions, MainForm mainForm, MainSplitContainer mainSplitContainer)
 {
     m_core               = core;
     m_options            = options;
     m_coreOptions        = coreOptions;
     m_mainForm           = mainForm;
     m_mainSplitContainer = mainSplitContainer;
     InitializeComponents();
     UpdateStrings();
     UpdateResults();
     Resources.Strings.OnCurrentChange    += new Resources.Strings.CurrentChangeHandler(UpdateStrings);
     m_mainSplitContainer.OnUpdateResults += new MainSplitContainer.UpdateResultsHandler(UpdateResults);
 }
Пример #12
0
 public MainToolStrip(CoreLib core, Options options, CoreOptions coreOptions, MainMenu mainMenu, MainForm mainForm, MainSplitContainer mainSplitContainer)
 {
     m_core               = core;
     m_options            = options;
     m_coreOptions        = coreOptions;
     m_mainMenu           = mainMenu;
     m_mainForm           = mainForm;
     m_mainSplitContainer = mainSplitContainer;
     InitializeComponents();
     UpdateStrings();
     UpdateResults();
     OnOptionsChanged();
     SetViewMode(m_options.resultsOptions.viewMode);
 }
Пример #13
0
 public ProgressForm(Type type, string path, CoreLib core, Options options, CoreOptions coreOptions, MainSplitContainer mainSplitContainer)
 {
     m_type = type;
     if (m_type == Type.MoveCurrentGroup)
     {
         m_directoryForMove = path;
     }
     else if (m_type == Type.RenameCurrentGroupAs)
     {
         m_newFileName = path;
     }
     else
     {
         throw new Exception("Unknown Type for action!");
     }
     Initialize(core, options, coreOptions, mainSplitContainer);
 }
Пример #14
0
        public ResultsPreviewContainer(CoreLib core, Options options, CoreOptions coreOptions, MainSplitContainer mainSplitContainer)
        {
            Location = new Point(0, 0);
            Dock     = DockStyle.Fill;

            m_mainSplitContainer            = mainSplitContainer;
            m_resultsPreviewDefect          = new ResultsPreviewDefect(core, options, coreOptions, m_mainSplitContainer.resultsListView);
            m_resultsPreviewDefect.Location = new System.Drawing.Point(0, 0);
            m_resultsPreviewDefect.Dock     = DockStyle.Fill;

            m_resultsPreviewDuplPair          = new ResultsPreviewDuplPair(core, options, coreOptions, m_mainSplitContainer.resultsListView);
            m_resultsPreviewDuplPair.Location = new System.Drawing.Point(0, 0);
            m_resultsPreviewDuplPair.Dock     = DockStyle.Fill;

            m_mainSplitContainer.OnCurrentResultChanged +=
                new MainSplitContainer.CurrentResultChangedHandler(CurrentResultChanged);
        }
Пример #15
0
 public void Get(CoreLib core, bool onePath)
 {
     searchOptions   = core.searchOptions.Clone();
     compareOptions  = core.compareOptions.Clone();
     defectOptions   = core.defectOptions.Clone();
     advancedOptions = core.advancedOptions.Clone();
     if (onePath)
     {
         searchPath[0] = core.searchPath[0];
     }
     else
     {
         searchPath = core.searchPath;
         ignorePath = core.ignorePath;
         validPath  = core.validPath;
         deletePath = core.deletePath;
     }
 }
Пример #16
0
        public MainForm()
        {
            m_core    = new CoreLib(Resources.UserPath);
            m_options = Options.Load();
            if (m_options.loadProfileOnLoading)
            {
                m_coreOptions = CoreOptions.Load(m_options.coreOptionsFileName, m_core, m_options.onePath);
            }
            else
            {
                m_options.coreOptionsFileName = Options.GetDefaultCoreOptionsFileName();
                m_coreOptions = new CoreOptions(m_core);
            }
            Resources.Strings.SetCurrent(m_options.Language);

            StartFinishForm startFinishForm = new StartFinishForm(m_core, m_options);

            startFinishForm.ExecuteStart();

            InitializeComponents();
        }
Пример #17
0
 public ResultsListView(CoreLib core, AntiDupl.NET.Options options, CoreOptions coreOptions, MainSplitContainer mainSplitContainer)
 {
     m_core               = core;
     m_options            = options;
     m_coreOptions        = coreOptions;
     m_mainSplitContainer = mainSplitContainer;
     m_results            = new CoreResult[0];
     m_resultRowSetter    = new ResultRowSetter(m_options, this);
     InitializeComponents();
     if (m_options.resultsOptions.viewMode == ResultsOptions.ViewMode.VerticalPairTable)
     {
         m_viewMode = ResultsOptions.ViewMode.HorizontalPairTable;
         SetViewMode(ResultsOptions.ViewMode.VerticalPairTable);
     }
     else
     {
         m_viewMode = ResultsOptions.ViewMode.VerticalPairTable;
         SetViewMode(ResultsOptions.ViewMode.HorizontalPairTable);
     }
     SetCurrentRow(0);
     Resources.Strings.OnCurrentChange += new Resources.Strings.CurrentChangeHandler(UpdateStrings);
 }
Пример #18
0
 public void Validate(CoreLib core, bool onePath)
 {
     Set(core, onePath);
     Get(core, onePath);
 }
Пример #19
0
 public ProgressForm(CoreDll.LocalActionType action, CoreDll.TargetType target, CoreLib core, Options options, CoreOptions coreOptions, MainSplitContainer mainSplitContainer)
 {
     m_type   = Type.ApplyAction;
     m_action = action;
     m_target = target;
     Initialize(core, options, coreOptions, mainSplitContainer);
 }
Пример #20
0
 public ProgressForm(CoreDll.RenameCurrentType renameCurrentType, string newFileName, CoreLib core, Options options, CoreOptions coreOptions, MainSplitContainer mainSplitContainer)
 {
     m_type = Type.RenameCurrent;
     m_renameCurrentType = renameCurrentType;
     m_newFileName       = newFileName;
     Initialize(core, options, coreOptions, mainSplitContainer);
 }
Пример #21
0
 public AboutProgramForm(CoreLib core)
 {
     m_core = core;
     InitializeComponent();
     UpdateStrings();
 }
Пример #22
0
 public ThumbnailStorage(CoreLib core, Options options)
 {
     m_core    = core;
     m_options = options;
 }
Пример #23
0
 public AboutProgramPanel(CoreLib core)
 {
     m_core = core;
     InitializeComponent();
 }
Пример #24
0
 public CoreOptions(CoreLib core)
     : this(core, false)
 {
 }
Пример #25
0
 public CoreOptions(CoreLib core, bool onePath)
     : this()
 {
     SetDefault(core, onePath);
 }