コード例 #1
0
ファイル: Program.cs プロジェクト: Camburg/EmployeeManager
        //Obtains the ID of the Employee
        static string GetID()
        {
            string id;

            Console.WriteLine("Please enter your ID: ");
            id = Console.ReadLine();
            while (!Employee.IsValidID(id))
            {
                Console.WriteLine("ID's must be in the format X99 (1 letter then 2 numbers)");
                Console.WriteLine("Please re-enter your ID: ");
                id = Console.ReadLine();
            }
            id = id.ToUpper();
            return(id);
        }