static void Main(string[] args) { StartProgram(); if (ToolsDatabaseUpperLayer.OpenDatabaseConnection()) { MainMenu(); ToolsScreen.MakeEmptyLines(2); ToolsOutput.PrintStringOnSeperateLine("Database Demo done !!!"); } else { ToolsOutput.PrintStringOnSeperateLine("Database Demo not done - Fejl ved Database forbindelse !!!"); } ToolsInput.WaitForUser(); }
static void StartProgram() { ToolsOutput.PrintStringOnSeperateLine("Connect to SQL Server and demo Create, Read, Update and Delete operations."); ToolsOutput.PrintStringOnSeperateLine("Tryk en tast for at starte programmet !!!"); ToolsInput.WaitForUser(); }