示例#1
0
		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;
		}
示例#2
0
		private void SetCompareTo(RamSearchEngine.Compare comp)
		{
			_searches.CompareTo = comp;
			WatchListView.Refresh();
		}
示例#3
0
		private void SetComparisonOperator(RamSearchEngine.ComparisonOperator op)
		{
			_searches.Operator = op;
			WatchListView.Refresh();
		}
示例#4
0
		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();
		}
示例#5
0
 public void Restart()
 {
     _settings = new RamSearchEngine.Settings(MemoryDomains);
     _searches = new RamSearchEngine(_settings, MemoryDomains);
     MessageLabel.Text = "Search restarted";
     DoDomainSizeCheck();
     NewSearch();
 }
示例#6
0
        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();
        }