public NotificationEventArgs(int id, HotItem item, NotifierRule rule, NotificationType type) { this.Id = id; this.Item = item; this.Rule = rule; this.NotificationType = type; }
private void AddRule() { var rule = new NotifierRule(Item, RuleType.Disabled, 0, ContextType, this); rule.RemoveRule += new EventHandler <NotifierCore.Notifier.Event.RemoveRuleEventArgs>(rule_RemoveRule); Rules.Add(rule); }
public NotificationModel(HotItem item, NotifierRule rule, String message, DateTime timeStamp, NotificationType notificationType) { this.DataId = item.DataId; this.NotificationType = notificationType; this.TimeStamp = timeStamp; this.Message = message; this.Item = item; if (this.Item != null) { this.BuyMoney = item.BuyMoney; this.SellMoney = item.SellMoney; } this.Rule = rule; ApplyItemValues(item); // TODO: Refactoring, someday NotifierRule and NotificationModel must be merged together }
public NotificationModel(HotItem item, NotifierRule rule, String message, DateTime timeStamp, NotificationType notificationType) { this.DataId = item.DataId; this.NotificationType = notificationType; this.TimeStamp = timeStamp; this.Message = message; this.Item = item; if (this.Item != null) { this.BuyMoney = item.BuyMoney; this.SellMoney = item.SellMoney; } if (NotificationType == NotificationType.Buy) { this.RuleBuy = rule; } else if (NotificationType == NotificationType.Sell) { this.RuleSell = rule; } }
public NotificationModel(GemManager gemManager, GemRuleViewModel item, NotifierRule rule, String message, DateTime timeStamp, NotificationType notificationType) { this.DataId = 0; this.IsGemNotification = true; this.NotificationType = notificationType; this.TimeStamp = timeStamp; this.Message = message; if (gemManager != null) { this.BuyMoney = gemManager.BuyGemPriceMoney; this.SellMoney = gemManager.BuyGoldPriceMoney; } if (NotificationType == NotificationType.BuyGems) { this.RuleBuy = rule; } else if (NotificationType == NotificationType.BuyGold) { this.RuleSell = rule; this.DataId = -1; } }
public NotificationModel(GemManager gemManager, GemRuleViewModel item, NotifierRule rule, String message, DateTime timeStamp, NotificationType notificationType) { this.DataId = 0; this.IsGemNotification = true; this.NotificationType = notificationType; this.TimeStamp = timeStamp; this.Message = message; if (gemManager != null) { this.BuyMoney = gemManager.BuyGemPriceMoney; this.SellMoney = gemManager.BuyGoldPriceMoney; } this.Rule = rule; if (NotificationType == NotificationType.BuyGems) { } else if (NotificationType == NotificationType.BuyGold) { this.DataId = -1; } Name = message; }
public RemoveRuleEventArgs(NotifierRule rule) { this.Rule = rule; }
private void AddRule() { var rule = new NotifierRule(null, RuleType.Disabled, 0, false); rule.RemoveRule += new EventHandler<Scraper.Notifier.Event.RemoveRuleEventArgs>(rule_RemoveRule); Rules.Add(rule); }
public void ActivateEventHandler(NotifierRule rule) { rule.RemoveRule += new EventHandler <NotifierCore.Notifier.Event.RemoveRuleEventArgs>(rule_RemoveRule); }
private void AddRule() { var rule = new NotifierRule(Item, RuleType.Disabled, 0, IsSellContext); rule.RemoveRule += new EventHandler<Scraper.Notifier.Event.RemoveRuleEventArgs>(rule_RemoveRule); Rules.Add(rule); }
public void ActivateEventHandler(NotifierRule rule) { rule.RemoveRule += new EventHandler<Scraper.Notifier.Event.RemoveRuleEventArgs>(rule_RemoveRule); }