private void AddRegItem(uint addr, string regName, ushort regValue, string noteStr) { string [] strArr = new string[] { RTConverters.HexUInt16((ushort)addr), regName, RTConverters.HexUInt16(regValue), regValue.ToString(), noteStr }; RegList.Items.Add(new ListViewItem(strArr)); }
private void ErrorItem(uint addr, string regStr, string errorStr) { RegList.Items.Add(new ListViewItem(new string[] { RTConverters.HexUInt16((ushort)addr), regStr, "0", "0", errorStr })); }