static void Main(string[] args) { var reminderItem1 = new ReminderItem(DateTimeOffset.Parse("13:45"), "first reminder"); var reminderItem2 = new ReminderItem(DateTimeOffset.Parse("12:45"), "second reminder"); reminderItem1.WriteProperties(); reminderItem2.WriteProperties(); }
static void Main(string[] args) { var reminderItem = new ReminderItem(new DateTime(2019, 10, 29, 16, 52, 30), "Good morning! Time to get up!") { }; reminderItem.WriteProperties(); var reminderItem1 = new ReminderItem(new DateTime(2099, 12, 02, 16, 52, 30), "Good morning! Time to get up!") { }; reminderItem1.WriteProperties(); Console.WriteLine("Press any key to exit..."); Console.ReadKey(); }
static void Main(string[] args) { ReminderItem reminder = new ReminderItem(); reminder.AlarmDate = DateTimeOffset.Parse("2019-04-02 12:30"); reminder.AlarmMessage = "Important meeting"; reminder.WriteProperties(); ReminderItem reminder1 = new ReminderItem(); reminder1.AlarmDate = DateTimeOffset.Parse("2019-03-27 19:40"); reminder1.AlarmMessage = "Don't forget potatoes in the oven!"; reminder1.WriteProperties(); Console.ReadLine(); }
static void Main(string[] args) { Console.WriteLine("Please write current information: \n " + "year, month, day,--- hours, minutes, seconds"); Console.WriteLine("year"); var year = Int32.Parse(Console.ReadLine()); Console.WriteLine("month"); var month = Int32.Parse(Console.ReadLine()); Console.WriteLine("day"); var day = Int32.Parse(Console.ReadLine()); Console.WriteLine("------------"); Console.WriteLine("hours"); var hours = Int32.Parse(Console.ReadLine()); Console.WriteLine("minutes"); var minutes = Int32.Parse(Console.ReadLine()); Console.WriteLine("seconds"); var seconds = Int32.Parse(Console.ReadLine()); DateTime dat = new DateTime(year, month, day, hours, minutes, seconds, DateTimeKind.Utc); Console.WriteLine("Write massange"); string massange = Console.ReadLine(); var First = new ReminderItem(dat, massange); var Second = new ReminderItem(dat, massange); Console.WriteLine("First progg"); First.WriteProperties(); Console.WriteLine("Second progg"); Second.WriteProperties(); Console.ReadKey(); }