From 738c633096d846d5685b52d7bc35eda07f0f77a9 Mon Sep 17 00:00:00 2001 From: "andres.delikat" Date: Sun, 20 Feb 2011 20:57:00 +0000 Subject: [PATCH] Ram Search - double clicking an address sends it to Ram Watch --- BizHawk.MultiClient/tools/RamSearch.Designer.cs | 1 + BizHawk.MultiClient/tools/RamSearch.cs | 9 +++++++++ BizHawk.MultiClient/tools/RamSearch.resx | 6 +++--- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/BizHawk.MultiClient/tools/RamSearch.Designer.cs b/BizHawk.MultiClient/tools/RamSearch.Designer.cs index 33126eb016..82d4b52a65 100644 --- a/BizHawk.MultiClient/tools/RamSearch.Designer.cs +++ b/BizHawk.MultiClient/tools/RamSearch.Designer.cs @@ -219,6 +219,7 @@ this.SearchListView.UseCompatibleStateImageBehavior = false; this.SearchListView.View = System.Windows.Forms.View.Details; this.SearchListView.VirtualMode = true; + this.SearchListView.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.SearchListView_MouseDoubleClick); this.SearchListView.QueryItemBkColor += new BizHawk.QueryItemBkColorHandler(this.SearchListView_QueryItemBkColor); this.SearchListView.QueryItemIndent += new BizHawk.QueryItemIndentHandler(this.SearchListView_QueryItemIndent); this.SearchListView.QueryItemImage += new BizHawk.QueryItemImageHandler(this.SearchListView_QueryItemImage); diff --git a/BizHawk.MultiClient/tools/RamSearch.cs b/BizHawk.MultiClient/tools/RamSearch.cs index 1455e95c26..f8060f446c 100644 --- a/BizHawk.MultiClient/tools/RamSearch.cs +++ b/BizHawk.MultiClient/tools/RamSearch.cs @@ -602,5 +602,14 @@ namespace BizHawk.MultiClient hackyAutoLoadToolStripMenuItem.Checked = true; } } + + private void SearchListView_MouseDoubleClick(object sender, MouseEventArgs e) + { + ListView.SelectedIndexCollection indexes = SearchListView.SelectedIndices; + if (indexes.Count > 0) + { + AddToRamWatch(); + } + } } } diff --git a/BizHawk.MultiClient/tools/RamSearch.resx b/BizHawk.MultiClient/tools/RamSearch.resx index 70c8b2fa77..5597b9c11f 100644 --- a/BizHawk.MultiClient/tools/RamSearch.resx +++ b/BizHawk.MultiClient/tools/RamSearch.resx @@ -171,6 +171,9 @@ 259, 17 + + 358, 17 + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 @@ -202,9 +205,6 @@ s1c0gHPmbrPTpHNJKOCo2G1mZs20zcwUJ5yp1AB5+8/zEwgF5GMVDxh4AAAAAElFTkSuQmCC - - 358, 17 - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8