コード例 #1
0
 private void DeleteItems(object param)
 {
     foreach (var item in SelectedItems.GroupBy(x => (x as ISecureItemVM).Type))
     {
         var holder = _secureHolderCollection.FirstOrDefault(x => x.SecureItemType == item.Key);
         if (holder != null)
         {
             holder.DeleteSelectedItemsClick(item);
         }
     }
 }
コード例 #2
0
        private void MovetoFolder(object param)
        {
            var ob = param as Tuple <object, string>;

            if (ob != null)
            {
                var parentFolderId = ob.Item2;
                foreach (var item in SelectedItems.GroupBy(x => (x as ISecureItemVM).Type))
                {
                    var holder = _secureHolderCollection.FirstOrDefault(x => x.SecureItemType == item.Key);
                    if (holder != null)
                    {
                        holder.MoveSecureItemToFolder(item, parentFolderId);
                    }
                }
            }
        }