void RefreshFunctionList() { lvwFunctions.Items.Clear(); foreach (var functionInfo in module.EnumerateFunctionInfos()) { var listViewItem = new ListViewItem(functionInfo.Name); listViewItem.SubItems.Add(Formatter.FormatHex((nuint)functionInfo.Address)); listViewItem.SubItems.Add(functionInfo.Ordinal.ToString()); lvwFunctions.Items.Add(listViewItem); } lvwFunctions.AutoResizeColumns(false); }
private void RefreshFunctionList() { lvwFunctions.Items.Clear(); foreach (var functionInfo in _module.EnumerateFunctionInfos()) { var listViewItem = new ListViewItem(functionInfo.Name); listViewItem.SubItems.Add("0x" + ((IntPtr)functionInfo.Address).ToString(Cache.Is64BitProcess ? "X16" : "X8")); listViewItem.SubItems.Add(functionInfo.Ordinal.ToString()); lvwFunctions.Items.Add(listViewItem); } lvwFunctions.AutoResizeColumns(false); }