Exemplo n.º 1
0
 public CMoveablePointForLineSegment(CMapDatabase database, CGPSLine line, CGPSLineSegment segment)
     : base(database, segment.PointDestination)
 {
     m_segment = segment;
     m_line    = line;
     m_listeItems.AddRange(line.FindMapItems(database));
 }
Exemplo n.º 2
0
        public CMoveablePointForLineStart(CMapDatabase database, CGPSLine line)
            : base(database, line.DetailLigne.PointDepart)
        {
            m_line = line;
            IEnumerable <IMapItem> items = line.FindMapItems(database);

            if (items.Count() > 0)
            {
                m_mapItem = items.ElementAt(0);
            }
        }
Exemplo n.º 3
0
        //-------------------------------------------------------------------
        public override CResultAErreur VerifieDonnees(CObjetDonnee objet)
        {
            CResultAErreur result = CResultAErreur.True;

            try
            {
                CGPSLine line = (CGPSLine)objet;

                if (line.Libelle == "")
                {
                    result.EmpileErreur(I.T("GPS line Label cannot be empty|20004"));
                }
            }
            catch (Exception e)
            {
                result.EmpileErreur(new CErreurException(e));
            }
            return(result);
        }