コード例 #1
0
        private List <Shared.Selectables.Person> CopySelectedToSecondGrid()
        {
            List <Shared.Selectables.Person> selections = new List <Shared.Selectables.Person>();

            foreach (Shared.Selectables.Person p in SelectablePersons)
            {
                if (p.Selected)
                {
                    selections.Add(p);
                    SelectedPersons.Add(p);
                }
            }
            return(selections);
        }
コード例 #2
0
 private void AddSelectedToSelectedPersons()
 {
     SelectedPersons.Add(SelectedListPerson);
     Persons.Remove(SelectedListPerson);
 }