private void AddListViewItem(MatrixPort port, ATMLListControl listView) { ListViewItem lvi = new ListViewItem(port.name); lvi.SubItems.Add(port.Description); lvi.SubItems.Add(port.baseIndexSpecified ? "" + port.baseIndex : ""); lvi.SubItems.Add(port.countSpecified ? "" + port.count : ""); lvi.SubItems.Add(port.incrementBySpecified ? "" + port.incrementBy : ""); lvi.SubItems.Add(port.replacementCharacter); lvi.Tag = port; listView.Items.Add(lvi); }
private void ProcessItemControl( IEnumerable<ItemDescriptionReference> referenceList, ATMLListControl listControl) { listControl.Items.Clear(); foreach (object obj in referenceList) { listControl.AddListViewObject( obj ); } }