Exemple #1
0
        static void Main(string[] args)
        {
            var timer1 = new ReminderItem(DateTimeOffset.Parse("30-09-2019"), "Time to get a job");
            var timer2 = new ReminderItem(DateTimeOffset.Parse("09:00"), "Go to study");

            timer1.WriteProperties();
            timer2.WriteProperties();
            Console.ReadKey();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            ReminderItem remind1 = new ReminderItem(DateTimeOffset.Parse("7:00:00 AM"), "It is time to wake up!");
            ReminderItem remind2 = new ReminderItem(DateTimeOffset.Parse("7:15:00 AM"), "It is time to WAKE UP!");

            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("Remind1: " + "\n");
            Console.ResetColor();
            remind1.WriteProperties();
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("\n" + "Remind2: " + "\n");
            Console.ResetColor();
            remind2.WriteProperties();
        }