Example #1
0
 public void PData_Requested(object sender, GotPostsEventArgs e)
 {
     //
     // Set JSONLoader busy for special period - after Async call was just made.
     //
     busyJSONLoader[(int)e.period] = true;
 }
Example #2
0
 public void PData_Changed(object sender, GotPostsEventArgs e)
 {
     busyJSONLoader[(int)e.period] = false;
     appendedPosts[(int)e.period] += e.len;
     if (lastPosts[(int)e.period] != null)
     {
         UIElement pb = FindElementRecursive(lastPosts[(int)e.period] as FrameworkElement, typeof(ProgressBar));
         pb.Visibility = Visibility.Collapsed;
     }
 }
Example #3
0
 public virtual void OnRequested(GotPostsEventArgs e)
 {
     //
     // Event to invoke after posts' portion downloaded
     // and appended to AllTabs.
     //
     if (Requested != null)
     {
         Requested(this, e);
     }
 }