protected ProductOnStock() : base("m02", "spp03") { this.saleStatus = ProductSaleStatus.OnStock; this.LocalUrl = string.Empty; this.myNotifier = new StatisticNotifier(); this.myEvent = new UpdateStatistics(); }
protected ProductZero() : base("m02", "spp10") { this.saleStatus = ProductSaleStatus.All; this.LocalUrl = string.Empty; this.myNotifier = new StatisticNotifier(); this.myEvent = new UpdateStatistics(); }
protected SellerAlreadySent() : base("m03", "ddp05") { this.Reurl = string.Empty; this.myNotifier = new StatisticNotifier(); this.myEvent = new UpdateStatistics(); }
protected ProductSendsIntegral() : base("m02", "spp02") { this.saleStatus = ProductSaleStatus.OnSale; this.LocalUrl = string.Empty; this.myNotifier = new StatisticNotifier(); this.myEvent = new UpdateStatistics(); }
protected RecycleStation() : base("m03", "ddp08") { this.Reurl = string.Empty; this.myNotifier = new StatisticNotifier(); this.myEvent = new UpdateStatistics(); }
protected ManageOrder() : base("m03", "ddp03") { this.Reurl = string.Empty; this.myNotifier = new StatisticNotifier(); this.myEvent = new UpdateStatistics(); }
protected WaitBuyerPay() : base("m03", "ddp14") { this.myNotifier = new StatisticNotifier(); this.myEvent = new UpdateStatistics(); this.Reurl = string.Empty; }
public ManageMembers() : base("m04", "hyp02") { this.mstatus = Globals.RequestQueryStr("MemberStatus"); this.ValidSmsNum = "0"; this.addHideCss = string.Empty; this.myNotifier = new StatisticNotifier(); this.myEvent = new UpdateStatistics(); this.reUrl = string.Empty; }
protected BalanceDrawApplyList() : base("m05", "fxp09") { this.RequestStartTime = ""; this.RequestEndTime = ""; this.StoreName = ""; this.DrawMinNum = 1; this.DrawPayType = ""; this.myNotifier = new StatisticNotifier(); this.myEvent = new UpdateStatistics(); }
protected RecycleStationDetail() : base("m03", "ddp08") { this.myNotifier = new StatisticNotifier(); this.myEvent = new UpdateStatistics(); this.orderId = Globals.RequestQueryStr("OrderId"); this.reurl = string.Empty; this.ProcessClass2 = string.Empty; this.ProcessClass3 = string.Empty; this.ProcessClass4 = string.Empty; }
protected MemberAmountApply() : base("m04", "hyp11") { this.RequestStartTime = ""; this.RequestEndTime = ""; this.StoreName = ""; this.DrawMinNum = 1; this.DrawPayType = ""; this.myNotifier = new StatisticNotifier(); this.myEvent = new UpdateStatistics(); }
protected DistributorList() : base("m05", "fxp03") { this.StoreName = ""; this.Grade = "0"; this.Status = "0"; this.RealName = ""; this.CellPhone = ""; this.MicroSignal = ""; this.myNotifier = new StatisticNotifier(); this.myEvent = new UpdateStatistics(); }
protected OrderDetails() : base("m03", "00000") { this.myNotifier = new StatisticNotifier(); this.myEvent = new UpdateStatistics(); this.orderId = Globals.RequestQueryStr("OrderId"); this.comCode = ""; this.reurl = string.Empty; this.ProcessClass2 = string.Empty; this.ProcessClass3 = string.Empty; this.ProcessClass4 = string.Empty; }
/// <summary> /// Suscribir un listener para recibir notificaciones cuando la estadística /// cambie su valor /// </summary> /// <param name="key">Identificador de la estadística</param> /// <param name="listener">Acción a ser llamada al recibir cambios la estadística dada</param> public void SubscribeToStatistic(string key, Action <string, double> listener) { if (StatisticNotifiers.ContainsKey(key)) { StatisticNotifiers[key].StatisticChanged += listener; } else { StatisticNotifier notifier = new StatisticNotifier(key); notifier.StatisticChanged += listener; StatisticNotifiers.Add(key, notifier); } if (statistics.ContainsKey(key)) { listener?.Invoke(key, statistics[key]); } else { listener?.Invoke(key, 0); } }
//protected string wid; public ManageMembers() : base("m04", "hyp02") { this.ValidSmsNum = "0"; this.myNotifier = new StatisticNotifier(); this.myEvent = new UpdateStatistics(); }
protected NotifierDemo() : base("", "") { this.myNotifier = new StatisticNotifier(); this.myEvent = new UpdateStatistics(); }