Esempio n. 1
0
 /// <summary>
 /// According to the table the user chose to work with in the begining the information is passed to one of the other displays.
 /// </summary>
 /// <remarks>The method deletes data.</remarks>
 private static void DeleteEntry()
 {
     Console.Clear();
     if (numberTable == 3)
     {
         townsDisplay.DeleteTownById();
     }
     else if (numberTable == 4)
     {
         competitorsDisplay.DeleteCompetitorById();
     }
     else if (numberTable == 5)
     {
         coachesDisplay.DeleteCoachById();
     }
     else if (numberTable == 6)
     {
         clubsDisplay.DeleteClubById();
     }
     Console.WriteLine();
     Console.WriteLine("Press any key to clear the screen..."); Console.ReadKey(); Console.Clear();
 }