static void Main(string[] args) { FrontEndHelperMethods.ExerciseDetails(); FrontEndHelperMethods.Intro(); BackEndHelperMethods.CourseLecturerBackground(); FrontEndHelperMethods.Signature(); FrontEndHelperMethods.Goodbye(); Console.ReadKey(); }
static void Main(string[] args) { FrontEndHelperMethods.ExerciseDetails(); FrontEndHelperMethods.Intro(); BackEndHelperMethods.CreateFilePath(); BackEndHelperMethods.CheckIfFileExists(); BackEndHelperMethods.ReadingFromCSVFile(); FrontEndHelperMethods.Goodbye(); Console.ReadKey(); }
public static void Goodbye() { char deleteChoice; deletionChoice: Console.ForegroundColor = ConsoleColor.White; Console.Write("Do you want to delete all folders and files created on this process? [Y/N]: "); try { deleteChoice = char.Parse(Console.ReadLine().ToUpper()); if (deleteChoice == 'Y') { BackEndHelperMethods.AskForDeletion(); Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("\tDELETION COMPLETE"); Signature(); Console.ForegroundColor = ConsoleColor.White; Console.WriteLine("Thanks for using this app!"); Console.WriteLine("Press any key to FINISH..."); } else if (deleteChoice == 'N') { Signature(); Console.ForegroundColor = ConsoleColor.White; Console.WriteLine("Thanks for using this app!"); Console.WriteLine("Press any key to FINISH..."); } else { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("***ERROR INPUT***: Please enter as character [Y] or [N]"); goto deletionChoice; } } catch (Exception e) { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("***ERROR INPUT: Please enter only a character"); Console.WriteLine("***ERROR***: {0}", e); goto deletionChoice; throw; } }