private void InventoryUpdated(object arg1, string arg2)
 {
     if (arg2.Equals("Delete"))
     {
         CCInventoryList.Remove((DistributorData)arg1);
     }
     if (arg2.Equals("Qty") || arg2.Equals("Price") || arg2.Equals("Delete"))
     {
         model.UpdateDeleteCCInventory((DistributorData)arg1, arg2);
     }
 }
 private void PopulateInventory()
 {
     if (CCInventoryList != null)
     {
         CCInventoryList.ToList().ForEach(i =>
         {
             i.InventoryUpdated -= InventoryUpdated;
             i.OpenUpdater      -= OpenUpdater;
         });
     }
     CCInventoryList = model.GetCCInventory();
     CCInventoryList.ToList().ForEach(i =>
     {
         i.InventoryUpdated += InventoryUpdated;
         i.OpenUpdater      += OpenUpdater;
     });
 }