private void FillListView() { try { // clear all existing items listViewCardboardFormats.Items.Clear(); PLMPackServiceClient client = WCFClientSingleton.Instance.Client; DCCardboadFormat[] cardboardFormats = client.GetAllCardboardFormats(); foreach (DCCardboadFormat cf in cardboardFormats) { ListViewItem item = new ListViewItem(); item.Text = cf.Name; item.SubItems.Add(cf.Description); item.SubItems.Add(string.Format("{0}", cf.Length)); item.SubItems.Add(string.Format("{0}", cf.Width)); item.Tag = cf.ID; listViewCardboardFormats.Items.Add(item); } } catch (Exception ex) { _log.Error(ex.ToString()); } }