private void UpdateTimeSpanDisplay() { EnsureVisible(timeSpanPicker); if (TypeXmlConvert.CanConvert(m_value, PrimitiveType.TimeSpan)) { timeSpanPicker.Value = TypeXmlConvert.ToTimeSpan(m_value); } else { timeSpanPicker.Value = new LinkMe.Framework.Type.TimeSpan(); } }