Example #1
0
        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);
            }
        }
Example #2
0
        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);
            }
        }
Example #3
0
 public override string ToString()
 {
     return(AfFormat.ToMaskedPhoneNumber(_wtn));
 }