Example #1
0
        private void ShowCall(PhoneCall call, int numOfCalls)
        {
            string name;

            if (numOfCalls == 1)
            {
                name = call.GetContactName();
            }
            else
            {
                name = call.GetContactName() + " (" + numOfCalls.ToString() + ")";
            }
            string number = call.CallNumber;
            string type   = call.GetCallType();

            CallListView.Items.Add(new ListViewItem(new[] { name, number, type, }));
        }