public override void Restart() { _settings = new SearchEngineSettings(MemoryDomains, Settings.UseUndoHistory); _searches = new RamSearchEngine(_settings, MemoryDomains); MessageLabel.Text = "Search restarted"; DoDomainSizeCheck(); _dropdownDontfire = true; SetSize(_settings.Size); // Calls NewSearch() automatically _dropdownDontfire = false; HardSetDisplayTypeDropDown(_settings.Type); }
private void RamSearch_Load(object sender, EventArgs e) { // Hack for previous config settings if (Settings.Columns.Any(c => string.IsNullOrWhiteSpace(c.Text))) { Settings = new RamSearchSettings(); } RamSearchMenu.Items.Add(WatchListView.ToColumnsMenu(ColumnToggleCallback)); _settings = new SearchEngineSettings(MemoryDomains, Settings.UseUndoHistory); _searches = new RamSearchEngine(_settings, MemoryDomains); ErrorIconButton.Visible = false; _dropdownDontfire = true; LoadConfigSettings(); SpecificValueBox.ByteSize = _settings.Size; SpecificValueBox.Type = _settings.Type; DifferentByBox.Type = Common.DisplayType.Unsigned; DifferenceBox.Type = Common.DisplayType.Unsigned; MessageLabel.Text = ""; SpecificAddressBox.MaxLength = (MemoryDomains.MainMemory.Size - 1).NumHexDigits(); HardSetSizeDropDown(_settings.Size); PopulateTypeDropDown(); HardSetDisplayTypeDropDown(_settings.Type); DoDomainSizeCheck(); SetReboot(false); SpecificAddressBox.SetHexProperties(_settings.Domain.Size); SpecificValueBox.ResetText(); SpecificAddressBox.ResetText(); NumberOfChangesBox.ResetText(); DifferenceBox.ResetText(); DifferentByBox.ResetText(); _dropdownDontfire = false; if (_settings.IsFastMode()) { SetToFastMode(); } NewSearch(); }
public void NewSearch() { var compareTo = _searches.CompareTo; var compareVal = _searches.CompareValue; var differentBy = _searches.DifferentBy; _searches = new RamSearchEngine(_settings, MemoryDomains, compareTo, compareVal, differentBy); _searches.Start(); if (Settings.AlwaysExcludeRamWatch) { RemoveRamWatchesFromList(); } UpdateList(); ToggleSearchDependentToolBarItems(); SetReboot(false); MessageLabel.Text = ""; SetDomainLabel(); }