public RamSearch() { SetStyle(ControlStyles.AllPaintingInWmPaint, true); SetStyle(ControlStyles.UserPaint, true); SetStyle(ControlStyles.OptimizedDoubleBuffer, true); InitializeComponent(); WatchListView.QueryItemText += ListView_QueryItemText; WatchListView.QueryItemBkColor += ListView_QueryItemBkColor; WatchListView.VirtualMode = true; Closing += (o, e) => SaveConfigSettings(); _sortedColumn = string.Empty; _sortReverse = false; _settings = new RamSearchEngine.Settings(); _searches = new RamSearchEngine(_settings); TopMost = Global.Config.RamSearchSettings.TopMost; }
private void SetCompareTo(RamSearchEngine.Compare comp) { _searches.CompareTo = comp; WatchListView.Refresh(); }
private void SetComparisonOperator(RamSearchEngine.ComparisonOperator op) { _searches.Operator = op; WatchListView.Refresh(); }
public void NewSearch() { var compareTo = _searches.CompareTo; var compareVal = _searches.CompareValue; var differentBy = _searches.DifferentBy; _searches = new RamSearchEngine(_settings, compareTo, compareVal, differentBy); _searches.Start(); if (Global.Config.RamSearchAlwaysExcludeRamWatch) { RemoveRamWatchesFromList(); } UpdateList(); ToggleSearchDependentToolBarItems(); SetReboot(false); MessageLabel.Text = string.Empty; SetDomainLabel(); }
public void Restart() { _settings = new RamSearchEngine.Settings(MemoryDomains); _searches = new RamSearchEngine(_settings, MemoryDomains); MessageLabel.Text = "Search restarted"; DoDomainSizeCheck(); NewSearch(); }
private void RamSearch_Load(object sender, EventArgs e) { TopMost = Settings.TopMost; RamSearchMenu.Items.Add(Settings.Columns.GenerateColumnsMenu(ColumnToggleCallback)); _settings = new RamSearchEngine.Settings(MemoryDomains); _searches = new RamSearchEngine(_settings, MemoryDomains); ErrorIconButton.Visible = false; _dropdownDontfire = true; LoadConfigSettings(); SpecificValueBox.ByteSize = _settings.Size; SpecificValueBox.Type = _settings.Type; MessageLabel.Text = string.Empty; 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.Mode == RamSearchEngine.Settings.SearchMode.Fast) { SetToFastMode(); } NewSearch(); }