コード例 #1
0
        static void Main(string[] args)
        {
            ConsoleLogging.IntroText();

            PhoneBook.ContactList = FileMaster.ReadFile();

            if (PhoneBook.ContactList.Count == 0)
            {
                ConsoleLogging.FirstTimeText();
                PhoneBook.CreateContact(0);
            }

            Execute();
        }
コード例 #2
0
        internal static int GetContactToUpdate()
        {
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine("Which contact do you want to update? Please select based on the id. Press 0 if you " +
                              "want to go back to the main menu.");
            Console.WriteLine();
            Console.ResetColor();
            PhoneBook.GetAllContacts();

            int id;

            id = GetIdSafely();

            return(id);
        }