/// <summary> /// Shows a message that the person has been sucessfully Added/Modified /// </summary> /// <param name="action">The type of Action (Add/Modify)</param> public void ShowPeopleAddedModifiedDeletedSuccesfully(AddModifyDeletePerson action) { ClearScreen(); string suffix = string.Empty; switch (action) { case AddModifyDeletePerson.Add: suffix = locService.GetString("Person_Added"); break; case AddModifyDeletePerson.Modify: suffix = locService.GetString("Person_Modified"); break; case AddModifyDeletePerson.Delete: suffix = locService.GetString("Person_Deleted"); break; default: break; } Console.WriteLine($"{locService.GetString("Person_AddedModified_Sucessfully")} {suffix} "); Console.ReadKey(true); }
/// <summary> /// Shows a message that a certain action could not be done /// </summary> /// <param name="action">The action (Add, Delete, Modify)</param> internal void ShowNoPersonsInListToAddModifyDelete(AddModifyDeletePerson action) { ClearScreen(); Console.WriteLine($"{locService.GetString("No_Patients_To")} {locService.GetString(action.ToString())}"); Console.ReadKey(true); }
/// <summary> /// Shows a message to select which patient to modify /// </summary> public void ShowPatienToModifyDelete(AddModifyDeletePerson action) { MakeSpaces(1); if (action == AddModifyDeletePerson.Modify) { Console.WriteLine($"{locService.GetString("Modify_Which_Patient")}"); } else { Console.WriteLine($"{locService.GetString("Delete_Which_Patient")}"); } }