// need to do more here, like take care of what keys went updated public static void RecordPriceEvent(object sender, PriceUpdateEventArgs e) { var s = sender.GetType(); var e1 = e.CatalogKeys.First().ToString(); var e2 = e.CatalogKeys.First().CatalogEntryCode; BfEventManager.SendToBF("Pricing", e1 + ":" + e2, s.ToString()); }
private void OnPriceUpdated(object sender, PriceUpdateEventArgs e) { Logger.Debug("OnPriceUpdated raised."); var contentLinks = new HashSet <ContentReference>( e.CatalogKeys.Select(key => _referenceConverter.GetContentLink(key.CatalogEntryCode))); IEnumerable <ProductContent> products = GetProductsAffected(contentLinks); foreach (ProductContent productContent in products) { _productExportService.ExportProduct(productContent, null); } }
private void AbstractAlert_PriceChanged(object sender, PriceUpdateEventArgs e) { foreach (DataGridViewRow row in grdAlerts.Rows) { if (Convert.ToInt32(row.Cells["Id"].Value) == e.AlertId) { if (grdAlerts.InvokeRequired) { grdAlerts.BeginInvoke(new Action(() => row.SetValues(e.Row))); } else { row.SetValues(e.Row); } break; } } }
//void Instance_PublishingContent(object sender, ContentEventArgs e) //{ //} void e_PriceUpdated(object sender, PriceUpdateEventArgs e) { EventReciever.RecordPriceEvent(sender, e); }
private void OnPriceUpdated(object sender, PriceUpdateEventArgs e) { var priceDetailValues = sender as List <IPriceDetailValue>; WebHookManager.NotifyAllAsync(EventNames.PriceUpdated, new { PriceDetailValues = priceDetailValues, e.CatalogKeys }); }
protected virtual void PriceUpdateEvent(PriceUpdateEventArgs e) { PriceUpdateHandler <PriceUpdateEventArgs> handler = PriceUpdate; handler?.Invoke(this, e); }
private void Broadcaster_PriceUpdated(object sender, PriceUpdateEventArgs e) { ReindexVariations(e.CatalogKeys.Select(ck => ck.CatalogEntryCode)); }