Example #1
0
        /// <summary>
        /// Method that updates the list and label with the current data stored in the contact manager.
        /// </summary>
        private void UpdateGUI()
        {
            string[] strContacts = contactmanager.GetContactsInfo();

            if (strContacts != null)
            {
                listBoxMain.Items.Clear();
                listBoxMain.Items.AddRange(strContacts);
                lblNoOfRecords.Text = listBoxMain.Items.Count.ToString();
            }
        }