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); } } }
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); } } } }