public TweetConsumer(TweetProducer producer, int threadNumber, MainWindow map) { this.map = map; this.count = 0; this.producer = producer; this.threadNumber = threadNumber; }
private void OnLoaded(object sender, RoutedEventArgs e) { base.Loaded -= OnLoaded; m_TextLayer = new MapLayer(); m_PushpinLayer = new MapLayer(); x_Map.Children.Add(m_PushpinLayer); x_Map.Children.Add(m_TextLayer); twitterOptions = new Dictionary<string, string>(); twitterOptions.Add("streamUrl", Options.twitterStreamUrl); twitterOptions.Add("username", Options.twitterUsername); twitterOptions.Add("password", Options.twitterPassword); twitterProducer = new TweetProducer(twitterOptions); twitterConsumers = new List<TweetConsumer>(); List<String> defaultKeywords = new List<String>(){"fire", "quake", "flood"}; keywords.Text = String.Join(", ", defaultKeywords); searchKeywords(defaultKeywords); }