Exemplo n.º 1
0
        //-------------------------------------------------------------------------
        private void AssureListeIcones()
        {
            if (m_cmbMarkerType.ListDonnees == null)
            {
                CEnumALibelle <EMapMarkerType>[] valeurs = CEnumALibelle <EMapMarkerType> .GetValeursEnumPossibleInEnumALibelle(typeof(CMapMarkerType));

                m_cmbMarkerType.ListDonnees       = valeurs;
                m_cmbMarkerType.ProprieteAffichee = "Libelle";
            }
        }
Exemplo n.º 2
0
        //---------------------------------------------------------
        public CControleEditeGpsPoint()
        {
            InitializeComponent();
            if (m_cmbMarkerType.ListDonnees == null)
            {
                CEnumALibelle <EMapMarkerType>[] valeurs = CEnumALibelle <EMapMarkerType> .GetValeursEnumPossibleInEnumALibelle(typeof(CMapMarkerType));

                List <CEnumALibelle <EMapMarkerType> > lst = new List <CEnumALibelle <EMapMarkerType> >(valeurs);
                lst.Remove(new CMapMarkerType(EMapMarkerType.none));
                m_cmbMarkerType.ListDonnees       = lst.ToArray();
                m_cmbMarkerType.ProprieteAffichee = "Libelle";
            }
            m_txtLatitude.DefaultFormat  = "° ' ''";
            m_txtLongitude.DefaultFormat = "° ' ''";
        }
Exemplo n.º 3
0
        //----------------------------------------
        protected override CResultAErreur MyInitChamps(CCustomizableListItem item)
        {
            CResultAErreur result = CResultAErreur.True;
            CMapItemDessin dessin = item != null ? item.Tag as CMapItemDessin : null;

            if (m_cmbMarkerType.ListDonnees == null && item != null)
            {
                CEnumALibelle <EMapMarkerType>[] valeurs = CEnumALibelle <EMapMarkerType> .GetValeursEnumPossibleInEnumALibelle(typeof(CMapMarkerType));

                m_cmbMarkerType.ListDonnees       = valeurs;
                m_cmbMarkerType.ProprieteAffichee = "Libelle";
            }
            if (dessin != null)
            {
                if (!IsCreatingImage)
                {
                    m_txtFormuleTooltip.Formule   = dessin.FormuleToolTip;
                    m_txtFormuleCondition.Formule = dessin.FormuleCondition;
                }
                m_lblFormuleTooltip.Text = dessin.FormuleToolTip != null?
                                           dessin.FormuleToolTip.GetString() : "";

                m_lblFormuleCondition.Text = dessin.FormuleCondition != null?
                                             dessin.FormuleCondition.GetString() : "";

                /*m_txtFormuleCondition.Visible = !IsCreatingImage;
                 * m_txtFormuleTooltip.Visible = !IsCreatingImage;
                 * m_lblFormuleCondition.Visible = IsCreatingImage;
                 * m_lblFormuleTooltip.Visible = IsCreatingImage;*/
                m_cmbMarkerType.SelectedValue = new CMapMarkerType(dessin.MarkerType);
                if (m_selectImage.Image != null)
                {
                    m_selectImage.Image.Dispose();
                }
                m_selectImage.Image    = dessin.Image != null ? new Bitmap(dessin.Image) : null;
                m_chkPermanent.Checked = dessin.PermanentToolTip;
                UpdateVisuImage();
            }
            return(result);
        }