コード例 #1
0
ファイル: Program.cs プロジェクト: JaneWB/Timer14_3
        private static void Main(string[] args)
        {
            try
            {
                Console.WriteLine("Enter time as, D:HH:MM:SS");
                SetTimer timer = new SetTimer(Console.ReadLine());
                timer.TimerCount();
            }
            catch (Exception ex)
            {
                Console.WriteLine("Incorrect format. Please use colon(:) between D:H:M:S");
            }

            Console.ReadLine();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: meganhainline/CG-14-3
        private static void Main(string[] args)
        {
            try
            {
                Console.WriteLine("Welcome to my timer! Let me know how long to set the timer for. Enter time as, DD:HH:MM:SS");
                SetTimer timer = new SetTimer(Console.ReadLine());
                timer.TimerCount();
            }
            catch (Exception ex)
            {
                Console.WriteLine("Incorrect format. Please use colon(:) between D:H:M:S");
            }

            Console.ReadLine();
        }