コード例 #1
0
 private void PrintExamples()
 {
     SyntheticData syntheticData = new SyntheticData();
 }
コード例 #2
0
        protected internal static void InputDataMenu()
        {
            Console.WriteLine("Choose Action: ");
            Console.WriteLine("1) Input list of Students.");
            Console.WriteLine("2) Input list of Course.");
            Console.WriteLine("3) Input list of Trainer.");
            Console.WriteLine("4) Input list of Assignments.");
            Console.WriteLine("5) Continue without inputs.");
            Console.WriteLine("6) Back to Main Menu.");

            ConsoleKeyInfo menuSelection;

            menuSelection = Console.ReadKey(true);

            switch (menuSelection.KeyChar)
            {
            case '1':
                Console.Clear();
                Console.WriteLine("Greating a list of Students.");
                List.InputToStudentList();
                Console.ReadKey();
                Console.Clear();
                InputDataMenu();
                break;

            case '2':
                Console.Clear();
                Console.WriteLine("Greating a list of Course.");
                List.InputToCourseList();
                Console.ReadKey();
                Console.Clear();
                break;

            case '3':
                Console.Clear();
                Console.WriteLine("Greating a list of Trainer.");
                List.InputToTrainersList();
                Console.ReadKey();
                Console.Clear();
                InputDataMenu();
                break;

            case '4':
                Console.Clear();
                Console.WriteLine("Greating a list of Assignments.");
                List.InputToAssignmentList();
                Console.ReadKey();
                Console.Clear();
                Menu();
                break;

            case '5':
                Console.Clear();
                Console.WriteLine("Greating a lists with sythetic data. ");
                SyntheticData.SendSyntheticDataToMemu();
                Console.ReadKey();
                Console.Clear();
                InputDataMenu();
                break;

            case '6':
                Console.Clear();
                Console.WriteLine("Back to Main Menu.");
                Menu();
                Console.ReadKey();
                Console.Clear();
                break;
            }
        }