private void UpdateTimeOfDayDisplay() { EnsureVisible(timeOfDayPicker); if (TypeXmlConvert.CanConvert(m_value, PrimitiveType.TimeOfDay)) { timeOfDayPicker.Value = TypeXmlConvert.ToTimeOfDay(m_value); } else { timeOfDayPicker.Value = new LinkMe.Framework.Type.TimeOfDay(); } }