Ram Watch - wire up column sorting

This commit is contained in:
adelikat 2019-10-14 20:39:10 -05:00
parent 488b8457b0
commit b3e6d1b49f
2 changed files with 3 additions and 5 deletions

View File

@ -895,8 +895,7 @@
this.WatchListView.Size = new System.Drawing.Size(332, 281);
this.WatchListView.TabIndex = 2;
this.WatchListView.UseCustomBackground = true;
// InputRoll TODO
//this.WatchListView.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.WatchListView_ColumnClick);
this.WatchListView.ColumnClick += new BizHawk.Client.EmuHawk.InputRoll.ColumnClickEventHandler(this.WatchListView_ColumnClick);
this.WatchListView.SelectedIndexChanged += new System.EventHandler(this.WatchListView_SelectedIndexChanged);
this.WatchListView.DragDrop += new System.Windows.Forms.DragEventHandler(this.NewRamWatch_DragDrop);
this.WatchListView.DragEnter += new System.Windows.Forms.DragEventHandler(this.DragEnterWrapper);

View File

@ -553,9 +553,8 @@ namespace BizHawk.Client.EmuHawk
}
}
private void OrderColumn(int index)
private void OrderColumn(InputRoll.RollColumn column)
{
var column = WatchListView.AllColumns[index];
if (column.Name != _sortedColumn)
{
_sortReverse = false;
@ -1278,7 +1277,7 @@ namespace BizHawk.Client.EmuHawk
}
// InputRoll TODO
private void WatchListView_ColumnClick(object sender, ColumnClickEventArgs e)
private void WatchListView_ColumnClick(object sender, InputRoll.ColumnClickEventArgs e)
{
OrderColumn(e.Column);
}