public void RemoveAllContactsProcess()
 {
     if (manager.GetContacts().Count != 0)
     {
         manager.RemoveAllContacts();
         Persist.DeleteSaveData();
     }
     else
     {
         Utilities.ConsoleShowErrorMsg("You have no contacts that you can remove.");
     }
 }
Example #2
0
 /// <summary>
 /// Remove all of the user's contacts.
 /// </summary>
 public void RemoveAllContactsProcess()
 {
     // If the user has any contacts.
     if (manager.GetContacts().Count != 0)
     {
         manager.RemoveAllContacts();
         Persist.DeleteSaveData();
     }
     // If the user has no contacts display a message stating such.
     else
     {
         Utilities.ConsoleShowErrorMsg("You have no contacts that you can remove.");
     }
 }