Example #1
0
        static void Main(string[] args)
        {
            ReminderItem values  = new ReminderItem(new DateTime(2020, 02, 17, 08, 00, 00), "Проснись тварь");
            ReminderItem values1 = new ReminderItem(new DateTime(2020, 03, 01, 10, 30, 00), "Проснись киберспортсмен");

            values.WriteProperties();
            values1.WriteProperties();
            Console.ReadKey();
        }
Example #2
0
        static void Main(string[] args)
        {
            List <ReminderItem> list = new List <ReminderItem>();
            var value1 = new ReminderItem(new DateTime(2020, 03, 01, 10, 30, 00), "WAKE UP!");
            var value2 = new PhoneReminderItem("+79998887766", new DateTime(2020, 02, 17, 08, 00, 00), "Important call");
            var value3 = new ChatReminderItem("MoscowNeverSleep", "charaz123", new DateTime(2020, 02, 17, 08, 00, 00), "Hello");

            list.Add(value1);
            list.Add(value2);
            list.Add(value3);
            list.ForEach((l) => l.WriteProperties());
            Console.ReadKey();
        }