//-------------------------------------------------------
        public void Init(CMapPointGenerator generator)
        {
            m_generator = generator;
            List <CCustomizableListItem> items = new List <CCustomizableListItem>();

            if (m_generator != null)
            {
                foreach (CMapItemDessin dessin in generator.ItemsDessin)
                {
                    CCustomizableListItem item = new CCustomizableListItem();
                    item.Tag = dessin;
                    items.Add(item);
                }
            }
            if (generator != null)
            {
                ((CControleEditeMapItemDessin)ItemControl).InitForMapPointGenerator(generator);
            }
            Items = items.ToArray();
        }
Ejemplo n.º 2
0
        //-----------------------------------------------
        public void InitChamps(IMapItemGenerator item)
        {
            m_mapPointGenerator = item as CMapPointGenerator;
            if (m_mapPointGenerator == null)
            {
                Visible = false;
                return;
            }
            Visible = true;
            m_panelFiltre.InitSansVariables(m_mapPointGenerator.Filtre);
            m_txtLibelle.Text = m_mapPointGenerator.Libelle;
            m_panelDessins.Init(m_mapPointGenerator);

            m_txtFormuleLatitude.Init(item.Generator, m_mapPointGenerator.TypeElementsDessines);
            m_txtFormuleLongitude.Init(item.Generator, m_mapPointGenerator.TypeElementsDessines);

            m_txtFormuleLongitude.Formule = m_mapPointGenerator.FormuleLongitude;
            m_txtFormuleLatitude.Formule  = m_mapPointGenerator.FormuleLatitude;
            UpdateVisuActionSurClick();
        }
Ejemplo n.º 3
0
 //----------------------------------------
 public void InitForMapPointGenerator(CMapPointGenerator pointGen)
 {
     m_txtFormuleCondition.Init(pointGen.Generator, new CObjetPourSousProprietes(pointGen));
     m_txtFormuleTooltip.Init(pointGen.Generator, new CObjetPourSousProprietes(pointGen));
 }