public static void Copy(ItemControlHooks hook1, ItemControlHooks hook2)
 {
     hook2.ItemIcon = hook1.ItemIcon;
     hook2.Tooltip = hook1.Tooltip;
     hook2.ItemId = hook1.ItemId;
     hook2.Quantity = hook1.Quantity;
     hook2.rectangle = hook1.rectangle;
 }
 private Quantifier<SpecificItem> GetSpecificItem(ItemControlHooks itemHooks)
 {
     return ShoppingCart.Find (x => x.Item.Id == itemHooks.ItemId);
 }
 /// <summary>
 /// Copies the info in hook from where the function is called into the specified hook.
 /// </summary>
 /// <param name="hook">The hook to copy the data into.</param>
 public void Copy(ItemControlHooks hook)
 {
     Copy(this, hook);
 }