コード例 #1
0
        public AjoutMatiere(List <Formation> _lstFormation)
        {
            InitializeComponent();
            List <Nameable> lstNameable = new List <Nameable>();

            foreach (Formation form in _lstFormation)
            {
                lstNameable.Add((Nameable)form);
            }
            MutliSelectPickList multiSelect = new MutliSelectPickList(lstNameable);

            this.MultiSelect.Content = multiSelect;
        }
コード例 #2
0
        public AjoutFormateur(List <Matiere> _lstMatiere)
        {
            InitializeComponent();
            List <Nameable> lstNameable = new List <Nameable>();

            foreach (Matiere mat in _lstMatiere)
            {
                lstNameable.Add((Nameable)mat);
            }
            MutliSelectPickList multiSelect = new MutliSelectPickList(lstNameable);

            this.MultiSelect.Content = multiSelect;
        }