/// <summary>
        /// Ajouter le point
        /// </summary>
        public void AddPoiInDB()
        {
            PointOfInterest.Trip.PointsOfInterests.Add(PointOfInterest);

            DataServicePoi dsPoi = new DataServicePoi();

            dsPoi.addPoi(PointOfInterest);
        }
        public void DeletePOI(PointOfInterest poi)
        {
            if (DeletePOIObject)
            {
                // For some reasons, Picture table doesn't refresh properly
                // We have to remove each element in the array manually
                DataServicePicture dsPicture = new DataServicePicture();
                foreach (Picture pic in dsPicture.LoadPicturesByPoiId(poi.Id))
                {
                    Trip.Pictures.Remove(pic);
                    dsPicture.DeletePicture(pic);
                }

                DataServiceNote dsNotes = new DataServiceNote();
                foreach (Note note in dsNotes.LoadNotesByPoiId(poi.Id))
                {
                    Trip.Notes.Remove(note);
                    dsNotes.DeleteNote(note);
                }
            }
            else
            {
                // For some reasons, Picture table doesn't refresh properly
                // We have to remove each element in the array manually
                DataServicePicture dsPicture = new DataServicePicture();
                foreach (Picture pic in dsPicture.LoadPicturesByPoiId(poi.Id))
                {
                    pic.PointOfInterest = null;
                }

                DataServiceNote dsNotes = new DataServiceNote();
                foreach (Note note in dsNotes.LoadNotesByPoiId(poi.Id))
                {
                    note.PointOfInterest = null;
                }
            }

            DataServicePoi dsPoi = new DataServicePoi();

            Trip.PointsOfInterests.Remove(poi);
            PointOfInterestList.Remove(poi);

            dsPoi.DeletePoi(poi, false);

            TripCommand.Execute(null);
        }
        private PointOfInterest GetPOIInDB(int poiId)
        {
            DataServicePoi dsPoi = new DataServicePoi();

            return(dsPoi.getPOIById(poiId));
        }
        /// <summary>
        /// Mettre à jour le point
        /// </summary>
        private void UpdateExistingPOI()
        {
            DataServicePoi dsPOI = new DataServicePoi();

            dsPOI.UpdatePoi(PointOfInterest);
        }