static void Main(string[] args) { var engine = new SchoolEngine(); engine.Initialize(); Printer.DrawTitle("School courses for the jan - jun semester"); PrintSchoolCourses(engine.School); }
static void Main(string[] args) { var engine = new SchoolEngine(); engine.Init(); PrintSchoolCourses(engine.School); }
static void Main(string[] args) { var schoolEngine = new SchoolEngine(); schoolEngine.initialization(); Printer.DrawTitle("Welcome to the School"); printSchoolCourses(schoolEngine.School); }
static void Main(string[] args) { // Logic main var engine = new SchoolEngine(); engine.Init(); // Console printing Printer.WriteTitle("Welcome to Net-Core School."); PrintSchoolCourses(engine.School); }
static void Main(string[] args) { AppDomain.CurrentDomain.ProcessExit += ActionEvent; var engine = new SchoolEngine(); engine.Initialize(); Printer.DrawTitle("School courses for the jan - jun semester"); var reporter = new Reporter(engine.GetObjectDictionary()); var evaluationList = reporter.GetListOfEvaluations(); var subjectList = reporter.GetListOfSubjects(); var evaluationListBySubjects = reporter.GetEvaluationsListBySubject(); }
static void Main(string[] args) { SchoolEngine engine = new SchoolEngine(); engine.InitializeSchool(); Header("IDIOMA || LANGUAGE"); Paragraph("Press \"E\" to set ENGLISH."); Paragraph("Pulsa \"Ñ\" para seleccionar ESPAÑOL"); SetLanguage(WaitForUserInput()); Test1(); }
static void Main(string[] args) { var engine = new SchoolEngine(); engine.Initialize(); Printer.WriteTitle("Welcome to school!!!"); PrintCourses(engine.School); var listObjects = engine.GetObjectSchool(); //engine.School.CleanPlace(); var listIPlace = from obj in listObjects where obj is IPlace select(IPlace) obj; Printer.WriteTitle("Welcome to school!!!"); }
static void Main(string[] args) { AppDomain.CurrentDomain.ProcessExit += eventAction; AppDomain.CurrentDomain.ProcessExit += (o, s) => Console.WriteLine("Hola"); var schoolEngine = new SchoolEngine(); schoolEngine.initialization(); Printer.DrawTitle("Welcome to the School"); var reporter = new Reporter(schoolEngine.GetObjDictionary()); var evalList = reporter.GetEvaluationList(); var subjectList = reporter.GetSubjectList(); var listEvaluationXsubject = reporter.GetEvaluationDictBySubject(); var listAverageXSubject = reporter.GetStudentAverageBySubject(); var last = reporter.getBestStudentsBySubjectAndPoint("Castellano", 4); Printer.DrawTitle("Captura de evauluacin por consola"); var newEval = new Evaluation(); string name, pointString; float point; Printer.pressEnter(); name = Console.ReadLine(); if (string.IsNullOrWhiteSpace(name)) { throw new ArgumentException("Value of name cant be empty"); } else { newEval.Name = name.ToLower(); Printer.DrawTitle("Name correct."); } WriteLine("Point of evaluation"); Printer.pressEnter(); pointString = Console.ReadLine(); if (string.IsNullOrWhiteSpace(pointString)) { Printer.DrawTitle("The value is incorrect..."); } else { try { newEval.Points = float.Parse(pointString); if (newEval.Points < 0 || newEval.Points > 5) { throw new ArgumentOutOfRangeException("The value must be between 0 and 5"); } WriteLine("The evaluation name is correct"); } catch (ArgumentOutOfRangeException arge) { WriteLine(arge.Message); } catch (Exception e) { WriteLine(e.Message); } finally { Printer.DrawTitle("The point value is not valid."); } } }
static void Main(string[] args) { AppDomain.CurrentDomain.ProcessExit += EventAction; var engine = new SchoolEngine(); engine.Initialize(); Printer.WriteTitle("Welcome to the School"); var reporter = new Reporter(engine.GetObjectDictionary()); var evaList = reporter.GetEvaluationsList(); var subjList = reporter.GetSubjectsList(); var evalXSubj = reporter.GetEvaluationsXSubjectDictionary(); var AvgSubjectList = reporter.GetAvgStudentXSubject(); var test = reporter.GetBestAverageXSubject(5); Printer.WriteTitle("Capture an evaluation by console"); var newEval = new Evaluation(); string name, scoreString; WriteLine("Enter the name of the evaluation"); Printer.PressEnter(); name = Console.ReadLine(); if (string.IsNullOrWhiteSpace(name)) { Printer.WriteTitle("The value of name can't be empty"); Printer.ExitingProgram(); } else { newEval.Name = name.ToLower(); WriteLine("Name has been saved correctly"); } WriteLine("Enter the score of the evaluation"); Printer.PressEnter(); scoreString = Console.ReadLine(); if (string.IsNullOrWhiteSpace(scoreString)) { Printer.WriteTitle("The value of the score can't be empty"); Printer.ExitingProgram(); } else { try { newEval.Score = float.Parse(scoreString); if (newEval.Score < 0 || newEval.Score > 5) { throw new ArgumentOutOfRangeException("The score must be a value from 0 to 5"); } WriteLine("The score has been saved correctly"); } catch (ArgumentOutOfRangeException arge) { WriteLine(arge.Message); } catch (Exception) { Printer.WriteTitle("The value of the score isn't valid"); Printer.ExitingProgram(); } finally { Printer.WriteTitle("FINALLY"); Printer.Beeper(2500, 500, 3); } } }