Example #1
0
        private void Add_Lies()
        {
            List <CHelpData> hlps = m_hlp.VoirAussiExplicite;

            CHelpDataNameComparer.Trier(ref hlps);
            AjouterItems("Faisant Reference", hlps);
        }
Example #2
0
        private void Add_Interfaces()
        {
            List <CHelpData> hlps = m_hlp.GetVoirAussiInterfaces(m_bEdition);

            CHelpDataNameComparer.Trier(ref hlps);
            AjouterItems("Interfaces", hlps);
        }
Example #3
0
        private void Add_Attributs()
        {
            List <CHelpData> hlps = m_hlp.GetVoirAussiAttributs(m_bEdition);

            CHelpDataNameComparer.Trier(ref hlps);
            AjouterItems("Attributs", hlps);
        }
Example #4
0
        public void ConstruireMenu()
        {
            //Effacer les items
            voirAussiToolStripMenuItem.DropDownItems.Clear();

            if (!m_bEdition)
            {
                List <CHelpData> itms = m_hlp.GetTousLesVoirAussi(m_bEdition);
                CHelpDataNameComparer.Trier(ref itms);
                foreach (CHelpData hlp in itms)
                {
                    voirAussiToolStripMenuItem.DropDownItems.Add(GetMenuItem(hlp));
                }
            }
            else
            {
                switch (m_hlp.TypeLiaison)
                {
                case ETypeLiaisonAide.Control:
                    Add_Rubriques_Control();
                    break;

                case ETypeLiaisonAide.Type:
                    Add_Rubriques_Type();

                    break;

                default:
                case ETypeLiaisonAide.Aucune:
                    Add_Rubriques_Aucune();
                    break;
                }
            }

            if (voirAussiToolStripMenuItem.DropDownItems.Count > 0)
            {
                mnu.Enabled = true;
            }
            else
            {
                mnu.Enabled = false;
            }
        }
Example #5
0
        public static void Trier(ref List <CHelpData> lst)
        {
            CHelpDataNameComparer comparer = new CHelpDataNameComparer();

            lst.Sort(comparer);
        }