コード例 #1
0
ファイル: Program UI.cs プロジェクト: ab5143/Komodo-Project-
        // 1 Create New Names

        private void CreateNewName()
        {
            Console.Clear();
            Developer NewNames = new Developer();

            // Names

            Console.WriteLine("Enter the Name of the Developer");
            NewNames.Name = Console.ReadLine();


            //ID
            Console.WriteLine("Enter the ID of the Developer");

            NewNames.Id = int.Parse(Console.ReadLine());

            //AccessTo Pluralsight
            Console.WriteLine(" Does this Developer has access to Pluralsight? Y/N");

            string Response = Console.ReadLine();

            if (Response == "Y")
            {
                NewNames.AccessToPluralSight = true;
            }
            else
            {
                NewNames.AccessToPluralSight = false;
            }

            _contentDeveloper.AddNamesToList(NewNames);
        }