Example #1
0
 private void FireOnHistoryRecorded(IFavorite favorite)
 {
     if (this.HistoryRecorded != null)
     {
         var args = new HistoryRecordedEventArgs(favorite);
         this.HistoryRecorded(args);
     }
 }
 private static void InsertRecordedNode(GroupTreeNode todayGroup, HistoryRecordedEventArgs args)
 {
     IFavorite favorite = args.Favorite;
     if (favorite != null) // shouldnt happen, because the favorite was actualy processed
     {
         var nodes = new TreeListNodes(todayGroup.Nodes);
         nodes.InsertFavorite(favorite);
     }
 }
 /// <summary>
 /// add new history item in todays list and/or perform full refresh,
 /// if day has changed since last refresh
 /// </summary>
 private void HistoryRecorded(HistoryRecordedEventArgs args)
 {
     if (IsDayGone())
         RefreshAllExpanded();
     else
         this.InsertRecordedNode(args);
 }
        private void InsertRecordedNode(HistoryRecordedEventArgs args)
        {
            GroupTreeNode todayGroup = this.Nodes[HistoryIntervals.TODAY] as GroupTreeNode;
            if (todayGroup.NotLoadedYet)
                return;

            if (!todayGroup.ContainsFavoriteNode(args.Favorite))
                InsertRecordedNode(todayGroup, args);
        }
 private void ConnectionHistory_OnHistoryRecorded(HistoryRecordedEventArgs args)
 {
     this.historyRecordedCount++;
 }
 private void FireOnHistoryRecorded(IFavorite favorite)
 {
     if (this.HistoryRecorded != null)
     {
         var args = new HistoryRecordedEventArgs(favorite);
         this.HistoryRecorded(args);
     }
 }