예제 #1
0
 private void RaisRemoveMapPoints(TweetListRowViewModel rowViewModel)
 {
     if (RemoveMapPoints != null)
     {
         RemoveMapPoints(rowViewModel, EventArgs.Empty);
     }
 }
예제 #2
0
        private void OnAddTweetListRow(object obj)
        {
            if (obj == null)
            {
                return;
            }

            string hashtag = obj.ToString();

            if (string.IsNullOrEmpty(hashtag) ||
                TweetListRows.Any(item => item.Hashtag.Equals(hashtag, StringComparison.OrdinalIgnoreCase)))
            {
                return;
            }

            var listRow = new TweetListRowViewModel(hashtag);

            listRow.MapPointAdded += TweetListRowMapPointAdded;
            listRow.RemoveThisRow += TweetListrowRemoveThis;

            TweetListRows.Add(listRow);
            listRow.StartStreaming();
        }