43. Time zone chart

This problem highlights several techniques and difficulties that arise when dealing with multiple time zones. When the example solution starts, it uses the following code to prepare the program for use:

// Display the time zones.private void Form1_Load(object sender, EventArgs e){    // Don't hide the selection when the ListView doesn't have focus.    timesListView.HideSelection = false;    timesListView.FullRowSelect = true;    // List the time zones.    foreach (TimeZoneInfo info in TimeZoneInfo.GetSystemTimeZones())    {        timeZone0ComboBox.Items.Add(info);        timeZone1ComboBox.Items.Add(info);    }    // In the first ComboBox, select the computer's time zone.    timeZone0ComboBox.SelectedItem = TimeZoneInfo.Local; // In the second ComboBox, select ...

Get The Modern C# Challenge now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.