private void InitializeComponents() { m_mainSplitContainer = new MainSplitContainer(m_core, m_options, m_coreOptions, this); m_mainSplitContainer.Dock = DockStyle.Fill; m_mainSplitContainer.Location = new System.Drawing.Point(0, 0); m_mainMenu = new MainMenu(m_core, m_options, m_coreOptions, this, m_mainSplitContainer); m_mainToolStrip = new MainToolStrip(m_core, m_options, m_coreOptions, m_mainMenu, this, m_mainSplitContainer); m_mainStatusStrip = new MainStatusStrip(m_mainSplitContainer, m_options); Size = new Size(MIN_WIDTH, MIN_HEIGHT); MinimumSize = new Size(MIN_WIDTH, MIN_HEIGHT); Icon = Resources.Icons.Get(Icon.Size); Controls.Add(m_mainSplitContainer); Controls.Add(m_mainToolStrip); Controls.Add(m_mainStatusStrip); Controls.Add(m_mainMenu); FormClosed += new FormClosedEventHandler(OnFormClosed); Shown += new EventHandler(OnFormShown); UpdateCaption(); }
public MainStatusStrip(MainSplitContainer mainSplitContainer, Options options) { m_mainSplitContainer = mainSplitContainer; m_options = options; InitializeComponents(); UpdateStrings(); UpdateResults(); }
public ThumbnailPreview(CoreLib core, Options options, MainSplitContainer mainSplitContainer) { m_core = core; m_options = options; m_mainSplitContainer = mainSplitContainer; InnitializeComponents(); //InnitializeTestButton(); }
public ThumbnailGroupTable(CoreLib core, AntiDupl.NET.Options options, MainSplitContainer mainSplitContainer) { m_core = core; m_options = options; m_mainSplitContainer = mainSplitContainer; m_thumbnailStorage = new ThumbnailStorage(m_core, m_options); InitializeComponents(); }
/// <summary> /// Инициализируем форму. /// </summary> /// <param name="core"></param> /// <param name="options"></param> /// <param name="coreOptions"></param> /// <param name="mainSplitContainer"></param> private void Initialize(CoreLib core, Options options, CoreOptions coreOptions, MainSplitContainer mainSplitContainer) { m_core = core; m_options = options; m_coreOptions = coreOptions; m_mainSplitContainer = mainSplitContainer; InitializeComponent(); UpdateStrings(); }
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 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 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 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 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(Type type, CoreLib core, Options options, CoreOptions coreOptions, MainSplitContainer mainSplitContainer) { if (type == Type.ApplyAction) { throw new Exception("Wrong using of ProgressForm type!"); } m_type = type; Initialize(core, options, coreOptions, mainSplitContainer); }
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 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); }