private void FillListView() { ListViewItem item; lvwResults.Items.Clear(); foreach (SearchItem customer in _customers) { item = new ListViewItem(); item.Text = customer.FirstName + " " + customer.LastName; item.SubItems.Add(AfFormat.ToMaskedPhoneNumber(customer.BTN)); item.SubItems.Add(customer.LoadDate.ToShortDateString()); item.SubItems.Add(customer.DispositionDate.ToShortDateString()); item.SubItems.Add(customer.CurrentDisposition); item.Tag = customer; lvwResults.Items.Add(item); } }
private void RebuildTVW() { TreeNode root; TreeNode wtn_node; tvwAccount.Nodes.Clear(); root = tvwAccount.Nodes.Add("WTNs"); root.ImageIndex = TVWICON_HOME; root.SelectedImageIndex = TVWICON_HOME; foreach (WTN wtn in _acct.WTNs) { wtn_node = root.Nodes.Add(AfFormat.ToMaskedPhoneNumber(wtn.WorkingTelephoneNumber)); wtn_node.ImageIndex = TVWICON_WTN; wtn_node.SelectedImageIndex = TVWICON_WTN; wtn_node.Tag = wtn; AddPlansToTVW(wtn_node); } }
public override string ToString() { return(AfFormat.ToMaskedPhoneNumber(_wtn)); }