示例#1
0
        public void SetSelectedExtensions(System.Collections.IList selections)
        {
            SelectedExtensions.Clear();
            foreach (var s in selections)
            {
                SelectedExtensions.Add((Extension)s);
            }

            DeterminePossibleActions();
        }
 public void RestoreSelectedExtensions()
 {
     if (_selectedExtensionsBackup != null)
     {
         //clear necesarry for a view without extensions, because then the itemssource doesnt get cleared => selected extensions neither
         SelectedExtensions.Clear();
         foreach (var item in _selectedExtensionsBackup)
         {
             SelectedExtensions.Add(item);
         }
     }
 }