public static bool startMenu() { Console.WriteLine("\n 1. I am a client \n 2. I am the artist \n 3. Exit"); switch (Console.ReadLine()) { case "1": Client newClient = new Client(); newClient.ClientLogIn(); return(true); case "2": Artist newArtist = new Artist(); newArtist.ArtistLogIn(); return(true); case "3": Console.WriteLine("are you sure you want to exit?"); bool input = Consolefunctions.Confirm(" "); if (input == true) { Console.WriteLine("Goodbye!"); return(false); } else { return(true); } default: return(true); } }
static void Main(string[] args) { Console.WriteLine("Welcome to the Art Commissioner!"); Console.WriteLine("\nThis console application simulates the process of ordering an artwork from an artist."); Console.WriteLine("How shall you start conducting your business?"); bool showMenu = true; while (showMenu) { showMenu = Consolefunctions.startMenu(); } }