private void Alert_FavMatchedLiveEnd(object sender, Models.FavMatchedLiveChangedEventArgs e) { if (_Alert.Favorites.All(x => 0 >= x.MatchedLives.Count)) { TaskTrayIcon.Value = TaskTrayIconPaths[0]; } }
private void Alert_FavMatchedLiveArrived(object sender, Models.FavMatchedLiveChangedEventArgs e) { foreach (var i in e.Matched) { StringBuilder message = new StringBuilder(); message.AppendFormat("Label:{0} Query:{1}\n", i.Label, i.Query); message.Append(i.MatchedLives[0].Url); message.Append("\n"); _Messanger.GetEvent <PubSubEvent <string> >().Publish(message.ToString()); } if (_Alert.Favorites.Any(x => 0 < x.MatchedLives.Count)) { TaskTrayIcon.Value = TaskTrayIconPaths[1]; } }