Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var reminder1 = new ReminderItem(DateTimeOffset.Parse("10.06.2021 8:00:00"), "Too early to wake up");
            var reminder2 = new ReminderItem(DateTimeOffset.Parse("09.06.2021 8:00:00"), "Time to wake up!");

            Console.WriteLine(reminder1.WriteProperties());
            Console.WriteLine(reminder2.WriteProperties());
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            DateTimeOffset datetime = DateTimeOffset.Parse("2021-06-07 13:41");
            ReminderItem   bud1     = new ReminderItem(datetime, "Подьем");

            bud1.WriteProperties();

            DateTimeOffset datetime2 = DateTimeOffset.Parse("2021-06-07 17:32");
            ReminderItem   bud2      = new ReminderItem(datetime2, "Подьем, проспишь!!!");

            bud2.WriteProperties();
        }