public static getAvailableIDs ( ) : global::java.lang.String[] | ||
return | global::java.lang.String[] |
private void View_ChangedTimezoneEvent() { string selected = View.SelectedTimezone; string[] ids = TimeZone.getAvailableIDs(); foreach (string id in ids) { TimeZone tz; if ((tz = TimeZone.getTimeZone(id)).getID().Equals(selected)) { _host.setTimezone(tz); break; } } ItemChanged(); }
private void InitTimezones() { List <string> timezones = new List <string> { UTC.getID() }; string[] allTimezones = TimeZone.getAvailableIDs(); Array.Sort(allTimezones); foreach (string timezone in allTimezones) { if (Regex.IsMatch(timezone, TimezoneIdPrefixes)) { timezones.Add(TimeZone.getTimeZone(timezone).getID()); } } View.PopulateTimezones(timezones); }