private void M_btnValidPreparation_Click(object sender, EventArgs e) { try { MobileCenter_Helper.TrackEvent(new FileAccessManager(), GetType().Name, MethodBase.GetCurrentMethod().Name); //Update local database m_trajet.Prepare(new FileAccessManager()); //Return to the list of trajets and set the result to OK in order to refresh it SetResult(Result.Ok); this.Finish(); } catch (Exception ex) { MobileCenter_Helper.ReportError(new FileAccessManager(), ex, GetType().Name, MethodBase.GetCurrentMethod().Name); } }