Exemplo n.º 1
0
        public void Delete(MarkerType p, bool deleteMarkerImage)
        {
            MarkerTypeManager.Delete((p));
            string            location       = DirectoryAndFileHelper.ServerIconsFolder;
            List <MarkerType> markerTypeList = GetAll().Where(mt => mt.Symbol == p.Symbol).ToList();
            bool existAnother = markerTypeList.Count > 0;


            if (!existAnother && deleteMarkerImage)
            {
                string path = location + p.Symbol;
                if (File.Exists(path))
                {
                    DocumentManager.Delete(path);
                }
            }
        }
Exemplo n.º 2
0
 public List <MarkerType> GetByName(string name)
 {
     return(MarkerTypeManager.GetByName(name));
 }
Exemplo n.º 3
0
 public MarkerType Get(int idMarkerType)
 {
     return(MarkerTypeManager.Get(idMarkerType));
 }
Exemplo n.º 4
0
 public MarkerType Save(MarkerType p)
 {
     return(MarkerTypeManager.Save((p)));
 }
Exemplo n.º 5
0
 public List <MarkerType> GetAll()
 {
     return(MarkerTypeManager.GetAll());
 }