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(); }
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(); }
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); } }
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(); }
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); }
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); }
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); }
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; }
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); }
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); }
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); }
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); }
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); }
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; } }
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(); }
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); }
public void Validate(CoreLib core, bool onePath) { Set(core, onePath); Get(core, onePath); }
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); }
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); }
public AboutProgramForm(CoreLib core) { m_core = core; InitializeComponent(); UpdateStrings(); }
public ThumbnailStorage(CoreLib core, Options options) { m_core = core; m_options = options; }
public AboutProgramPanel(CoreLib core) { m_core = core; InitializeComponent(); }
public CoreOptions(CoreLib core) : this(core, false) { }
public CoreOptions(CoreLib core, bool onePath) : this() { SetDefault(core, onePath); }