private void UpdateTimeBeforeStart() { try { string sHourMinutLeftBeforeStart = m_trajet.GetLibelleHourMinutLeftBeforeStart(); string stextviewMinutesBeforeStartText = sHourMinutLeftBeforeStart == "" ? "" : string.Format(Resources.GetString(Resource.String.activitytrajetDetails_textview_minutesBeforeStart), sHourMinutLeftBeforeStart); //Time before start if (stextviewMinutesBeforeStartText == "") { m_layoutTimeBeforeStart.Visibility = ViewStates.Gone; } else { m_textviewMinutesBeforeStart.Text = stextviewMinutesBeforeStartText; m_layoutTimeBeforeStart.Visibility = ViewStates.Visible; //Will update again in 10 seconds m_handler_UpdateTimeBeforeEhouatStartEveryMinuts.PostDelayed(m_workRunnable_UpdateTimeBeforeEhouatStartEveryMinuts, 10000); } } catch (Exception e) { MobileCenter_Helper.ReportError(new FileAccessManager(), e, GetType().Name, "m_workRunnable_UpdateTimeBeforeEhouatStartEveryMinuts"); } }