예제 #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();
        }
예제 #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();
        }
예제 #3
0
        static void Main(string[] args)
        {
            var Reminders = new ReminderItem[3];

            Reminders[0] = new ReminderItem(DateTimeOffset.Parse("7:00:00 AM"), "It is time to wake up!");
            Reminders[1] = new PhoneReminderItem(DateTimeOffset.Parse("7:15:00 AM"), "It is time to WAKE UP!", "+79854270698");
            Reminders[2] = new ChatReminderItem(DateTimeOffset.Parse("7:40:00 AM"), "It is real time to WAKE UP!!!!!", "Wakers220", "Sonyich");

            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("Remind1: " + "\n");
            Console.ResetColor();
            Reminders[0].WriteProperties();
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("\n" + "Remind2: " + "\n");
            Console.ResetColor();
            Reminders[1].WriteProperties();
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("\n" + "Remind3: " + "\n");
            Console.ResetColor();
            Reminders[2].WriteProperties();
        }